1: <?php
2:
3: class iGivefirst_Error extends Exception {}
4: class iGivefirst_HttpError extends Exception {}
5:
6: /**
7: * An authentication error occurred as a result of an invalid api key, secret, or un-whitelisted IP
8: */
9: class iGivefirst_AuthenticationError extends iGivefirst_HttpError {};
10:
11: /**
12: * The object requested was not found
13: */
14: class iGivefirst_ObjectNotFound extends iGivefirst_HttpError {};
15:
16: /**
17: * The object sent already exists
18: */
19: class iGivefirst_ObjectAlreadyExists extends iGivefirst_HttpError {};
20:
21: /**
22: * Donor information was not complete enough
23: */
24: class iGivefirst_DonorInformationIncomplete extends iGivefirst_Error {};
25:
26: /**
27: * Donor could not be created because of invalid parameters
28: */
29: class iGivefirst_DonorNotCreated extends iGivefirst_Error {};
30:
31: /**
32: * Donor could not be created because it already exists
33: */
34: class iGivefirst_DonorAlreadyExists extends iGivefirst_Error {};
35:
36: /**
37: * Account information was not complete enough
38: */
39: class iGivefirst_AccountInformationIncomplete extends iGivefirst_Error {};
40:
41: /**
42: * Account could not be created because of invalid parameters
43: */
44: class iGivefirst_AccountNotCreated extends iGivefirst_Error {};
45:
46: /**
47: * Account could not be updated because of invalid parameters
48: */
49: class iGivefirst_AccountNotUpdated extends iGivefirst_Error {};
50:
51: /**
52: * Donation information was not complete enough
53: */
54: class iGivefirst_DonationInformationIncomplete extends iGivefirst_Error {};
55:
56: /**
57: * Donation could not be created because of invalid parameters
58: */
59: class iGivefirst_DonationNotCreated extends iGivefirst_Error {};
60:
61: ?>
62: