-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPlurkException.cs
88 lines (74 loc) · 2.25 KB
/
PlurkException.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System;
using System.Collections.Generic;
using System.Text;
namespace RenRen.Plurk
{
/// <summary>Occurs when Plurk threw an error during a request.</summary>
[Serializable]
public class PlurkException : ApplicationException
{
public PlurkException()
: base()
{
}
public PlurkException(string message)
: base(message)
{
}
public PlurkException(string message, Exception innerException)
: base(message, innerException)
{
}
}
/// <summary>Occurs when the specified Plurk was not found during a request.</summary>
[Serializable]
public class PlurkNotFoundException : PlurkException
{
public PlurkNotFoundException()
: base("The plurk requested is not found. It could have been deleted by the owner")
{
}
public PlurkNotFoundException(string message)
: base(message)
{
}
public PlurkNotFoundException(string message, Exception innerException)
: base(message, innerException)
{
}
}
/// <summary>Occurs when the current user has no permission to perform the specified request.</summary>
[Serializable]
public class PlurkPermissionException : PlurkException
{
public PlurkPermissionException()
: base("The current user has no permission to the requested plurk")
{
}
public PlurkPermissionException(string message)
: base(message)
{
}
public PlurkPermissionException(string message, Exception innerException)
: base(message, innerException)
{
}
}
/// <summary>Occurs when the a request was rejected by plurk due to anti-flood mechanism.</summary>
[Serializable]
public class PlurkFloodException : PlurkException
{
public PlurkFloodException()
: base("The request was rejected by Plurk anti-flood system")
{
}
public PlurkFloodException(string message)
: base(message)
{
}
public PlurkFloodException(string message, Exception innerException)
: base(message, innerException)
{
}
}
}