gt4sd.exceptions module

Custom exception definitions.

Summary

Exceptions:

DuplicateApplicationRegistration

Error when identifier for a registration is not unique.

GT4SDTimeoutError

Error for timeouts in gt4sd.

InvalidAlgorithmConfiguration

Error in validating an algorithm configuration.

InvalidItem

Error in validating an item.

S3SyncError

Error in syncing the cache with S3.

SamplingError

Error when inference takes too long.

Reference

exception S3SyncError(title, detail)[source]

Bases: RuntimeError

Error in syncing the cache with S3.

__init__(title, detail)[source]

Initialize S3SyncError.

Parameters
  • title (str) – title of the error.

  • detail (str) – description of the error.

__doc__ = 'Error in syncing the cache with S3.'
__module__ = 'gt4sd.exceptions'
__weakref__

list of weak references to the object (if defined)

exception InvalidItem(title, detail)[source]

Bases: ValueError

Error in validating an item.

__init__(title, detail)[source]

Initialize InvalidItem.

Parameters
  • title (str) – title of the error.

  • detail (str) – description of the error.

__doc__ = 'Error in validating an item.'
__module__ = 'gt4sd.exceptions'
__weakref__

list of weak references to the object (if defined)

exception InvalidAlgorithmConfiguration(title, detail)[source]

Bases: ValueError

Error in validating an algorithm configuration.

__init__(title, detail)[source]

Initialize InvalidAlgorithmConfiguration.

Parameters
  • title (str) – title of the error.

  • detail (str) – description of the error.

__doc__ = 'Error in validating an algorithm configuration.'
__module__ = 'gt4sd.exceptions'
__weakref__

list of weak references to the object (if defined)

exception DuplicateApplicationRegistration(title, detail)[source]

Bases: ValueError

Error when identifier for a registration is not unique.

__init__(title, detail)[source]

Initialize DuplicateApplicationRegistration.

Parameters
  • title (str) – title of the error.

  • detail (str) – description of the error.

__doc__ = 'Error when identifier for a registration is not unique.'
__module__ = 'gt4sd.exceptions'
__weakref__

list of weak references to the object (if defined)

exception SamplingError(title, detail)[source]

Bases: TimeoutError

Error when inference takes too long.

__init__(title, detail)[source]

Initialize SamplingError.

Parameters
  • title (str) – title of the error.

  • detail (str) – description of the error.

__doc__ = 'Error when inference takes too long.'
__module__ = 'gt4sd.exceptions'
__weakref__

list of weak references to the object (if defined)

exception GT4SDTimeoutError(title, detail)[source]

Bases: TimeoutError

Error for timeouts in gt4sd.

__init__(title, detail)[source]

Initialize SamplingError.

Parameters
  • title (str) – title of the error.

  • detail (str) – description of the error.

__doc__ = 'Error for timeouts in gt4sd.'
__module__ = 'gt4sd.exceptions'
__weakref__

list of weak references to the object (if defined)