Skip to content

Commit 0d130ab

Browse files
committed
Added base toggl exception
1 parent 104dd2d commit 0d130ab

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

toggl_python/exceptions.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
class BadRequest(Exception):
1+
class TogglException(Exception):
22
pass
33

44

5-
class Unauthorized(Exception):
5+
class BadRequest(TogglException):
66
pass
77

88

9-
class Forbidden(Exception):
9+
class Unauthorized(TogglException):
1010
pass
1111

1212

13-
class NotFound(Exception):
13+
class Forbidden(TogglException):
1414
pass
1515

1616

17-
class MethodNotAllowed(Exception):
17+
class NotFound(TogglException):
1818
pass
1919

2020

21-
class NotSupported(Exception):
21+
class MethodNotAllowed(TogglException):
22+
pass
23+
24+
25+
class NotSupported(TogglException):
2226
pass
2327

2428

0 commit comments

Comments
 (0)