Skip to content

Commit fc84f9c

Browse files
authored
Merge pull request #226 from lancedfr/patch-1
Update exception table with new exceptions
2 parents 6b6b146 + 729bab3 commit fc84f9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ To address this we've refactored exception handling and we are deprecating the g
4040

4141
| code | class | description |
4242
|------|-------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
43+
| N/A | XeroException | All Xero exceptions extend from XeroException |
44+
| N/A | XeroAuthenticationException | XeroUnauthorizedException and XeroUnauthorizedException extend from XeroAuthenticationException |
4345
| 400 | XeroBadRequestException | A validation exception has occurred - typical cause invalid data. Look at data returned for error details |
44-
| 401 | XeroUnauthorizedException | Invalid authorization credentials |
45-
| 403 | XeroForbiddenException | Not authorized to access a resource - typical cause is problem with scopes |
46+
| 401 | XeroUnauthorizedException | Invalid authorization credentials. Extends XeroAuthenticationException |
47+
| 403 | XeroForbiddenException | Not authorized to access a resource - typical cause is problem with scopes. Extends XeroAuthenticationException |
4648
| 404 | XeroNotFoundException | The resource you have specified cannot be found |
4749
| 405 | XeroMethodNotAllowedException | Method not allowed on the organisation - typical cause the API is not available in the organisation i.e. UK Payroll on Australian org. |
4850
| 429 | XeroRateLimitException | The API rate limit for your organisation/application pairing has been exceeded. |

0 commit comments

Comments
 (0)