Skip to content

Commit

Permalink
reverting badger errors because exception handler deals with creating…
Browse files Browse the repository at this point in the history
… the pop-ups now
  • Loading branch information
YektaY committed Oct 29, 2024
1 parent 9e3f972 commit 3ce7a0b
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/badger/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,62 +40,60 @@ def capture_traceback_or_stack(self):
return "".join(traceback.format_stack())


class BadgerConfigError(BadgerError):
class BadgerConfigError(Exception):
pass


class VariableRangeError(BadgerError):
class VariableRangeError(Exception):
pass


class BadgerNotImplementedError(BadgerError):
class BadgerNotImplementedError(Exception):
pass


class BadgerDBError(BadgerError):
class BadgerDBError(Exception):
pass


class BadgerEnvVarError(BadgerError):
class BadgerEnvVarError(Exception):
pass


class BadgerEnvObsError(BadgerError):
class BadgerEnvObsError(Exception):
pass


class BadgerNoInterfaceError(BadgerError):
def __init__(self, detailed_text=None):
super().__init__(
message="Must provide an interface!", detailed_text=detailed_text
)
class BadgerNoInterfaceError(Exception):
def __init__(self, message="Must provide an interface!"):
super().__init__(message)


class BadgerInterfaceChannelError(BadgerError):
class BadgerInterfaceChannelError(Exception):
pass


class BadgerInvalidPluginError(BadgerError):
class BadgerInvalidPluginError(Exception):
pass


class BadgerPluginNotFoundError(BadgerError):
class BadgerPluginNotFoundError(Exception):
pass


class BadgerInvalidDocsError(BadgerError):
class BadgerInvalidDocsError(Exception):
pass


class BadgerLogbookError(BadgerError):
class BadgerLogbookError(Exception):
pass


class BadgerLoadConfigError(BadgerError):
class BadgerLoadConfigError(Exception):
pass


class BadgerRoutineError(BadgerError):
class BadgerRoutineError(Exception):
pass


Expand Down

0 comments on commit 3ce7a0b

Please sign in to comment.