SamsAssetErrors – Asset Errors

class BinaryNotSupplied(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when attempting to create a new Asset without an associated binary data

app_code: str = '08001'
description: str = 'Asset must contain a binary to upload'
http_code: int = 400
class AssetNotFound(asset_id: Union[bson.objectid.ObjectId, str], exception: Optional[Exception] = None)

Raised when attempting to download the binary of a non-existent Asset

app_code: str = '08002'
description: str = 'Asset with id "{asset_id}" not found'
http_code: int = 404
class AssetUploadToInactiveSet(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when attempting to create a new Asset into an inactive set

app_code: str = '08003'
description: str = 'Asset upload is not allowed to an inactive Set'
http_code: int = 400
class AssetExceedsMaximumSizeForSet(asset_size: int, max_size: int)

Raised when an Asset size exceeds the configured max size of a Set

app_code: str = '08004'
description: str = 'Asset size ({asset_size}) exceeds the maximum size for the Set ({max_size})'
http_code: int = 400