Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/fixate/core/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
class SequenceAbort(BaseException):
class SequenceAbort(Exception):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are all getting touched, It's probably worth making a top level FixateError and deriving all the more specific errors from that.

pass


class ScriptError(BaseException):
class ScriptError(Exception):
pass


class TestRetryExceeded(BaseException):
class TestRetryExceeded(Exception):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it grows the scope of this PR too much, but generally python exceptions will be suffixed with Error. We could rename them, keeping an alias for compatibility (but probably not worth the churn)

pass


class TestAbort(BaseException):
class TestAbort(Exception):
pass


class InstrumentError(BaseException):
class InstrumentError(Exception):
pass


class InstrumentTimeOut(InstrumentError):
pass


class ParameterError(BaseException):
class ParameterError(Exception):
pass


class InvalidScalarQuantityError(BaseException):
class InvalidScalarQuantityError(Exception):
pass


Expand All @@ -38,29 +38,29 @@ class InstrumentNotConnected(InstrumentError):
pass


class NotCompatible(BaseException):
class NotCompatible(Exception):
pass


class MissingParameters(ParameterError):
pass


class UserInputError(BaseException):
class UserInputError(Exception):
pass


class TestClassError(BaseException):
class TestClassError(Exception):
pass


class TestError(BaseException):
class TestError(Exception):
pass


class DUTError(BaseException):
class DUTError(Exception):
pass


class CheckFail(BaseException):
class CheckFail(Exception):
pass
2 changes: 1 addition & 1 deletion src/fixate/drivers/ftdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}


class FTD2XXError(BaseException):
class FTD2XXError(Exception):
pass


Expand Down
Loading