SamsSetErrors – Set Errors

class InvalidStateTransition(state: str, exception: Optional[Exception] = None)

Raised when attempting to convert an active Set back to draft

app_code: str = '07001'
description: str = 'Cannot change state from "{state}" to draft'
http_code: int = 400
class DestinationChangeNotAllowed(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when attempting to change the StorageDestination of an active Set

app_code: str = '07002'
description: str = 'Destination can only be changed in draft state'
http_code: int = 400
class DestinationConfigChangeNotAllowed(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when attempting to change the StorageDestination config of an active Set

app_code: str = '07003'
description: str = 'Destination config can only be changed in draft state'
http_code: int = 400
class DestinationNotFound(destination_id: str, exception: Optional[Exception] = None)

Raised when the StorageDestination could not be found

app_code: str = '07004'
description: str = 'Destination "{destination_id}" isnt configured'
http_code: int = 400
class CannotDeleteActiveSet(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when attempting to delete an active Set or Inactive Set with Assets

app_code: str = '07005'
description: str = 'Can only delete Sets that are in draft state or disabled with no assets'
http_code: int = 400
class SetNotFound(set_id: bson.objectid.ObjectId, exception: Optional[Exception] = None)

Raised when a Set cannot be found

app_code: str = '07006'
description: str = 'Set with id {set_id} not found'
http_code: int = 400