/
RedditException.cs
51 lines (41 loc) · 1.05 KB
/
RedditException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SnooSharp
{
public class RedditException : Exception
{
public RedditException(string message) : base(message)
{
}
}
public class RedditDisallowedException : Exception
{
public RedditDisallowedException(string what)
: base(string.Format("{0} was not disallowed", what))
{
}
}
public class RedditUnauthorizedException : Exception
{
public RedditUnauthorizedException(string what)
: base(string.Format("access to {0} was not unauthorized", what))
{
}
}
public class RedditEmptyException : Exception
{
public RedditEmptyException(string what)
: base(string.Format("{0} was empty", what))
{
}
}
public class RedditNotFoundException : Exception
{
public RedditNotFoundException(string what)
: base(string.Format("{0} was not found", what))
{
}
}
}