junobuild_storage/
errors.rs

1pub const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED: &str = "juno.storage.error.upload_not_allowed";
2pub const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED: &str = "juno.storage.error.set_not_allowed";
3// Provided collection does not match existing collection
4pub const JUNO_STORAGE_ERROR_CANNOT_COMMIT_INVALID_COLLECTION: &str =
5    "juno.storage.error.cannot_commit_invalid_collection";
6pub const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH: &str = "juno.storage.error.cannot_commit_batch";
7pub const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND: &str = "juno.storage.error.asset_not_found";
8pub const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET: &str = "juno.storage.error.cannot_read_asset";
9// Asset path must be prefixed with collection key. e.g. collection #releases or releases must match a path /releases/something
10pub const JUNO_STORAGE_ERROR_UPLOAD_PATH_COLLECTION_PREFIX: &str =
11    "juno.storage.error.upload_path_collection_prefix";
12pub const JUNO_STORAGE_ERROR_RESERVED_ASSET: &str = "juno.storage.error.reserved_asset";
13pub const JUNO_STORAGE_ERROR_BATCH_NOT_FOUND: &str = "juno.storage.error.batch_not_found";
14pub const JUNO_STORAGE_ERROR_CHUNK_NOT_FOUND: &str = "juno.storage.error.chunk_not_found";
15pub const JUNO_STORAGE_ERROR_CHUNK_NOT_INCLUDED_IN_BATCH: &str =
16    "juno.storage.error.chunk_not_included_in_batch";
17pub const JUNO_STORAGE_ERROR_CHUNK_TO_COMMIT_NOT_FOUND: &str =
18    "juno.storage.error.chunk_to_commit_not_found";
19// Asset exceed max allowed size
20pub const JUNO_STORAGE_ERROR_ASSET_MAX_ALLOWED_SIZE: &str =
21    "juno.storage.error.asset_max_allowed_size";