foundry_dev_tools.errors.meta module#

Metaclasses for all Foundry DevTools exceptions/errors.

exception foundry_dev_tools.errors.meta.FoundryDevToolsError[source]#

Bases: Exception

Metaclass for FoundryAPIError.

Catch all foundry_dev_tools errors:

try:
    fun()  # raise DatasetNotFoundError or any other
except FoundryDevToolsError:
    print("Some foundry_dev_tools error")
exception foundry_dev_tools.errors.meta.FoundryAPIError[source]#

Bases: FoundryDevToolsError

Initialize a Foundry API error.

Parameters:
  • response – requests Response where the API error occured

  • info – add additional information to this error

  • kwargs – error specific parameters which may contain more information about the error

__init__(response=None, info=None, **kwargs)[source]#

Initialize a Foundry API error.

Parameters:
  • response (requests.Response | None) – requests Response where the API error occured

  • info (str | None) – add additional information to this error

  • kwargs – error specific parameters which may contain more information about the error

Return type:

None

message = 'Details about the Foundry API error:\n'#