from werkzeug.exceptions import BadRequest, Conflict, HTTPException, NotFound class JwtMissing(Exception): """Raised when JWT is missing in the request.""" pass class JwtInvalid(Exception): """Raised when JWT is invalid or malformed.""" pass class DuplicateAssetUploadFilename(BadRequest): """Raised when a filename already exists.""" pass class NoAssetsFound(NotFound): """Raised when no assets are found.""" pass class MissingContext(BadRequest): """Raised when a bad request context is missing.""" pass class AssetFinalExists(Conflict): """Raised when an existing asset final record is found.""" pass class AssetFinalNotFound(NotFound): """Raised when an existing asset final record is not found.""" pass class BitsPerSampleNotFound(NotFound): """Raised when bits per sample is not found.""" pass class DesiredBitsPerSampleNotFound(BadRequest): """Raised when desired bits per sample is not found.""" pass class AssetStatusNotFound(NotFound): """Raised when an asset status is not found.""" pass class HiveSegmentExists(Conflict): """Raised when an existing Hive segment is found.""" pass class HiveTextRecognitionExists(Conflict): """Raised when a hive text recognition record already exists for an asset_final_id.""" pass class VendorNotFound(NotFound): """Raised when a vendor is not found.""" pass class ArtistNotFound(NotFound): """Raised when an artist is not found.""" pass class ReleaseCorrectionNotFound(NotFound): """Raised when a release correction record is not found.""" pass class ProductNotFound(NotFound): """Raised when a product is not found.""" pass class ImageAssetNotFound(NotFound): """Raised when an image asset is not found.""" pass class InvalidEntityType(BadRequest): """Raised when an entity type is not valid.""" pass class AssetUploadNotFound(NotFound): """Raised when an asset upload is not found.""" pass class AssetUploadTypeNotFound(NotFound): """Raised when an asset upload type is not found.""" pass class TrackNotFound(NotFound): """Raised when a track is not found.""" pass class InvalidProductStatus(BadRequest): """Raised when an invalid product status is found.""" pass class WrongAssetStatus(NotFound): """Raised when an asset status is not correct.""" pass class TrackDoesNotBelongToProduct(BadRequest): """Raised when a track does not belong to product.""" pass class S3MultipartUploadFailed(BadRequest): """Raised when a multipart upload failed.""" pass class AssetUploadError(Exception): """Raised when an asset upload fails.""" pass class AssetEncodingInProgress(HTTPException): """Raised when an asset encoding is in progress.""" pass class InvalidAssetUploadType(BadRequest): """Raised when asset_upload_type is incompatible with the provided track_unique_id.""" pass class AssetDeleteFailure(Exception): """Raised when an asset deletion fails.""" pass class ErrorDiscardingCorrections(Exception): """Raised when an error discarding corrections is found.""" pass