unitelabs.sdk.core.error

Packages

Attributes

  • Name
    __all__
    Type
    Value

    = [ "ClientError", "AuthError", "ExecutionError", "ParameterError", "TransportError", "parse_error" ]

    Description

Functions

  • parse_error(response : dict) -> ClientError

    Parameters

    • Name
      response
      Type
      dict
      Default
      Description

    Response

    Type
    ClientError
    Description

Classes

  • AuthError

    Methods

    • __init__(
        self,
        error : typing.Literal['invalid_request', 'invalid_client', 'invalid_grant', 'invalid_scope', 'unauthorized_client', 'unsupported_grant_type'],
        error_description : typing.Optional[str],
        error_uri : typing.Optional[str]
      ) -> None

      Parameters

      • Name
        self
        Type
        Default
        Description

      • Name
        error
        Type
        typing.Literal['invalid_request', 'invalid_client', 'invalid_grant', 'invalid_scope', 'unauthorized_client', 'unsupported_grant_type']
        Default
        Description

      • Name
        error_description
        Type
        typing.Optional[str]
        Default
        = None
        Description

      • Name
        error_uri
        Type
        typing.Optional[str]
        Default
        = None
        Description

    Attributes

    • Name
      error
      Type
      Value

      = error

      Description

    • Name
      error_description
      Type
      Value

      = error_description

      Description

    • Name
      error_uri
      Type
      Value

      = error_uri

      Description

  • ClientError

    Base class for all exceptions that may occur when communicating with a connector.

    Bases
    Exception
  • ExecutionError

    Failed to execute an aciton on the connector.

    Methods

    • __init__(
        self,
        identifier : str,
        message : str
      ) -> None

      Parameters

      • Name
        self
        Type
        Default
        Description

      • Name
        identifier
        Type
        str
        Default
        = ''
        Description

      • Name
        message
        Type
        str
        Default
        = ''
        Description

    Attributes

    • Name
      identifier
      Type
      Value

      = identifier

      Description

    • Name
      message
      Type
      Value

      = message

      Description

  • ParameterError

    Failed to validate the given parameters.

    Methods

    • __init__(
        self,
        parameter : str,
        message : str
      ) -> None

      Parameters

      • Name
        self
        Type
        Default
        Description

      • Name
        parameter
        Type
        str
        Default
        Description

      • Name
        message
        Type
        str
        Default
        Description

    Attributes

    • Name
      parameter
      Type
      Value

      = parameter

      Description

    • Name
      message
      Type
      Value

      = message

      Description

  • TransportError

    Base class for all exceptions that occur at the level of the transport.

Copyright © 2024