Skip to content

Commit db64b0f

Browse files
committed
update
1 parent e0c7320 commit db64b0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

labelbox/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class LabelboxError(Exception):
22
"""Base class for exceptions."""
3+
34
def __init__(self, message, cause=None):
45
"""
56
Args:
@@ -27,6 +28,7 @@ class AuthorizationError(LabelboxError):
2728

2829
class ResourceNotFoundError(LabelboxError):
2930
"""Exception raised when a given resource is not found. """
31+
3032
def __init__(self, db_object_type, params):
3133
""" Constructor.
3234
@@ -66,6 +68,7 @@ class InvalidQueryError(LabelboxError):
6668

6769
class NetworkError(LabelboxError):
6870
"""Raised when an HTTPError occurs."""
71+
6972
def __init__(self, cause):
7073
super().__init__(str(cause), cause)
7174
self.cause = cause
@@ -79,6 +82,7 @@ class TimeoutError(LabelboxError):
7982
class InvalidAttributeError(LabelboxError):
8083
""" Raised when a field (name or Field instance) is not valid or found
8184
for a specific DB object type. """
85+
8286
def __init__(self, db_object_type, field):
8387
super().__init__("Field(s) '%r' not valid on DB type '%s'" %
8488
(field, db_object_type.type_name()))

0 commit comments

Comments
 (0)