Skip to content

SMError

Zentetsu edited this page Nov 7, 2024 · 2 revisions

SMTypeError Objects

class SMTypeError(Exception)

CLass focused on catching types that aren't accepted.

Arguments:

Exception (Exception):

Constructor

def __init__(type: type, message: str = " is not accepted.") -> None

Class constructor.

Arguments:

  • type type - type that has not been accepted
  • message str, optional - message. Defaults to " is not accepted.".

SMSizeError Objects

class SMSizeError(Exception)

Class focused on catching over resizing when data are updated.

Arguments:

Exception (Exception):

Constructor

def __init__(
        message: str = "size of new value exceeds the previous one.") -> None

CLass constructor.

Arguments:

  • message str, optional - message. Defaults to "size of new value exceeds the previous one.".

SMMultiInputError Objects

class SMMultiInputError(Exception)

class focused on catching the fact that value adn path are initialized or not.

Arguments:

Exception (Exception):

SMMultConstructor

def __init__(message: str = "value xor path must be None.") -> None

Class constructor.

Arguments:

  • message str, optional - message. Defaults to None.

SMNotDefined Objects

class SMNotDefined(Exception)

Class focused on catching an attempt to access an unintialized shared memory.

Arguments:

Exception (Exception):

SConstructor

def __init__(name: str, message: str = None) -> None

Class constructor.

Arguments:

  • name str - shared memory name
  • message str, optional - message. Defaults to None.

SMManagerName Objects

class SMManagerName(Exception)

Class focused on catching an attempt to access an unintialized shared memory.

Arguments:

Exception (Exception):

SMConstructor

def __init__(name: str, message: str = None) -> None

Class constructor.

Arguments:

  • name str - shared memory name
  • message str, optional - message. Defaults to None.

SMAlreadyExist Objects

class SMAlreadyExist(Exception)

Class focused on catching an attempt to create an intialized shared memory.

Arguments:

Exception (Exception):

SMAConstructor

def __init__(name: str, message: str = None) -> None

Class constructor.

Arguments:

  • name str - shared memory name
  • message str, optional - message. Defaults to None.

SMEncoding Objects

class SMEncoding(Exception)

Class focused on catching an attempt to create an intialized shared memory.

Arguments:

Exception (Exception):

##Constructor

def __init__(name: str, message: str = None) -> None

Class constructor.

Arguments:

  • name str - shared memory name
  • message str, optional - message. Defaults to None.

SMNameLength Objects

class SMNameLength(Exception)

Class focused on catching an attempt to create a shared memory with a name exceeding 14 characters.

Arguments:

Exception (Exception):

SConstructor

def __init__(name: str, message: str = None) -> None

Class constructor.

Arguments:

  • name str - shared memory name
  • message str, optional - message. Defaults to None.
Clone this wiki locally