Module azcam.exceptions

azcam.exceptions contains custom exceptions and warnings used throughout azcam.

Functions

def AzcamWarning(message: str) ‑> None

AzcamWarning prints a warning message.

Classes

class AzcamError (message: str, error_code: int = 0)

Common base class for all non-exit exceptions.

Custom error exception for azcam.

Usage: raise azcam.AzcamError(message)

Args

message
string message to display when error is raised
error_code
flag for code, from list below
  • 0 - no error
  • 1 - controller reset error, check power and fibers
  • 2 - could not open connection to server
  • 3 - receive image data abort
  • 4 - remote call not allowed

Ancestors

  • builtins.Exception
  • builtins.BaseException