@junobuild/errors
Version:
A collection of predefined error constants and utilities for Juno applications.
3 lines (2 loc) • 7.38 kB
JavaScript
import{a as _}from"./chunk-VSLSQUON.js";var o="juno.cdn.proposals.error.cannot_submit",r="juno.cdn.proposals.error.cannot_submit_invalid_status",e="juno.cdn.proposals.error.cannot_reject",R="juno.cdn.proposals.error.cannot_reject_invalid_status",O="juno.cdn.proposals.error.cannot_commit",t="juno.cdn.proposals.error.cannot_commit_invalid_status",n="juno.cdn.proposals.error.invalid_hash",E="juno.cdn.proposals.error.unknown_type",N="juno.cdn.proposals.error.empty_content_chunks",s="juno.cdn.proposals.error.no_content_chunks_at_index",c="juno.cdn.proposals.error.empty_assets",T="juno.cdn.proposals.error.cannot_delete_assets",a="juno.cdn.proposals.error.cannot_delete_assets_invalid_status",A="juno.cdn.proposals.error.next_id_convert",S="juno.cdn.proposals.error.next_id_overflow",p="juno.cdn.storage.error.cannot_insert_asset_unknown_reference_id",C="juno.cdn.storage.error.cannot_get_asset_unknown_reference_id",u="juno.cdn.storage.error.cannot_insert_asset_encoding_unknown_reference_id",U="juno.cdn.storage.error.no_proposal_found",L="juno.cdn.storage.error.invalid_releases_path",l="juno.cdn.storage.error.missing_releases_description",D="juno.cdn.storage.error.invalid_releases_description",d="juno.cdn.storage.error.invalid_collection";var i="juno.collections.error.modify_reserved_collection",x="juno.collections.error.reserved_name",j="juno.collections.error.reserved_collection",J="juno.collections.error.rate_config_enabled",P="juno.collections.error.prefix_deletion",m="juno.collections.error.not_empty",M="juno.collections.error.not_found",f="juno.collections.error.prefix_reserved";var G="juno.error.no_timestamp_provided",F="juno.error.timestamp_outdated_or_future",V="juno.error.no_version_provided",v="juno.error.version_outdated_or_future",h="juno.datastore.error.cannot_write",H="juno.datastore.error.cannot_read",w="juno.storage.error.upload_not_allowed",W="juno.storage.error.set_not_allowed",k="juno.storage.error.cannot_commit_invalid_collection",y="juno.storage.error.cannot_commit_batch",K="juno.storage.error.asset_not_found",Y="juno.storage.error.cannot_read_asset",X="juno.storage.error.upload_path_collection_prefix",b="juno.storage.error.reserved_asset",B="juno.storage.error.batch_not_found",z="juno.storage.error.chunk_not_found",Z="juno.storage.error.chunk_not_included_in_batch",q="juno.storage.error.chunk_to_commit_not_found",Q="juno.storage.error.asset_max_allowed_size",$="juno.auth.error.not_admin_controller",__="juno.auth.error.invalid_origin",o_="juno.auth.error.not_write_controller",r_="juno.auth.error.not_controller",e_="juno.datastore.error.user.cannot_update",R_="juno.datastore.error.user.invalid_data",O_="juno.datastore.error.user.caller_key",t_="juno.datastore.error.user.key_no_principal",n_="juno.datastore.error.user.not_allowed",E_="juno.datastore.error.user.usage.change_limit_reached",N_="juno.datastore.error.user.usage.invalid_data";var c_="juno.error.controllers.max_number",T_="juno.error.controllers.anonymous_not_allowed",a_="juno.error.controllers.revoked_not_allowed",A_="juno.error.memory.stable_exceeded",S_="juno.error.memory.heap_exceeded",p_="juno.error.cycles.deposit_balance_low",C_="juno.error.cycles.deposit_failed",u_="juno.error.canister.create_failed",U_="juno.error.canister.install_code_failed",L_="juno.error.segment.stop_failed",l_="juno.error.segment.delete_failed",D_="juno.error.cmc.call_ledger_failed",d_="juno.error.cmc.ledger_transfer_failed",I_="juno.error.cmc.top_up_failed",i_="juno.error.cmc.call_create_canister_failed",x_="juno.error.cmc.create_canister_failed",j_="juno.error.cmc.install_code_failed",J_="juno.error.invalid_regex";export{__ as JUNO_AUTH_ERROR_INVALID_ORIGIN,$ as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,r_ as JUNO_AUTH_ERROR_NOT_CONTROLLER,o_ as JUNO_AUTH_ERROR_NOT_WRITE_CONTROLLER,O as JUNO_CDN_PROPOSALS_ERROR_CANNOT_COMMIT,t as JUNO_CDN_PROPOSALS_ERROR_CANNOT_COMMIT_INVALID_STATUS,T as JUNO_CDN_PROPOSALS_ERROR_CANNOT_DELETE_ASSETS,a as JUNO_CDN_PROPOSALS_ERROR_CANNOT_DELETE_ASSETS_INVALID_STATUS,e as JUNO_CDN_PROPOSALS_ERROR_CANNOT_REJECT,R as JUNO_CDN_PROPOSALS_ERROR_CANNOT_REJECT_INVALID_STATUS,o as JUNO_CDN_PROPOSALS_ERROR_CANNOT_SUBMIT,r as JUNO_CDN_PROPOSALS_ERROR_CANNOT_SUBMIT_INVALID_STATUS,c as JUNO_CDN_PROPOSALS_ERROR_EMPTY_ASSETS,N as JUNO_CDN_PROPOSALS_ERROR_EMPTY_CONTENT_CHUNKS,n as JUNO_CDN_PROPOSALS_ERROR_INVALID_HASH,A as JUNO_CDN_PROPOSALS_ERROR_NEXT_ID_CONVERT,S as JUNO_CDN_PROPOSALS_ERROR_NEXT_ID_OVERFLOW,s as JUNO_CDN_PROPOSALS_ERROR_NOT_CONTENT_CHUNKS_AT_INDEX,E as JUNO_CDN_PROPOSALS_ERROR_UNKNOWN_TYPE,C as JUNO_CDN_STORAGE_ERROR_CANNOT_GET_ASSET_UNKNOWN_REFERENCE_ID,u as JUNO_CDN_STORAGE_ERROR_CANNOT_INSERT_ASSET_ENCODING_UNKNOWN_REFERENCE_ID,p as JUNO_CDN_STORAGE_ERROR_CANNOT_INSERT_ASSET_UNKNOWN_REFERENCE_ID,d as JUNO_CDN_STORAGE_ERROR_INVALID_COLLECTION,D as JUNO_CDN_STORAGE_ERROR_INVALID_RELEASES_DESCRIPTION,L as JUNO_CDN_STORAGE_ERROR_INVALID_RELEASES_PATH,l as JUNO_CDN_STORAGE_ERROR_MISSING_RELEASES_DESCRIPTION,U as JUNO_CDN_STORAGE_ERROR_NO_PROPOSAL_FOUND,m as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY,M as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND,P as JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED,i as JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION,f as JUNO_COLLECTIONS_ERROR_PREFIX_RESERVED,J as JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED,j as JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION,x as JUNO_COLLECTIONS_ERROR_RESERVED_NAME,H as JUNO_DATASTORE_ERROR_CANNOT_READ,h as JUNO_DATASTORE_ERROR_CANNOT_WRITE,O_ as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,e_ as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,R_ as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,t_ as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,n_ as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,E_ as JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED,N_ as JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA,u_ as JUNO_ERROR_CANISTER_CREATE_FAILED,U_ as JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED,i_ as JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED,D_ as JUNO_ERROR_CMC_CALL_LEDGER_FAILED,x_ as JUNO_ERROR_CMC_CREATE_CANISTER_FAILED,j_ as JUNO_ERROR_CMC_INSTALL_CODE_FAILED,d_ as JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED,I_ as JUNO_ERROR_CMC_TOP_UP_FAILED,T_ as JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED,c_ as JUNO_ERROR_CONTROLLERS_MAX_NUMBER,a_ as JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED,p_ as JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW,C_ as JUNO_ERROR_CYCLES_DEPOSIT_FAILED,J_ as JUNO_ERROR_INVALID_REGEX,S_ as JUNO_ERROR_MEMORY_HEAP_EXCEEDED,A_ as JUNO_ERROR_MEMORY_STABLE_EXCEEDED,G as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,V as JUNO_ERROR_NO_VERSION_PROVIDED,l_ as JUNO_ERROR_SEGMENT_DELETE_FAILED,L_ as JUNO_ERROR_SEGMENT_STOP_FAILED,F as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,v as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,Q as JUNO_STORAGE_ERROR_ASSET_MAX_ALLOWED_SIZE,K as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,B as JUNO_STORAGE_ERROR_BATCH_NOT_FOUND,y as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,k as JUNO_STORAGE_ERROR_CANNOT_COMMIT_INVALID_COLLECTION,Y as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,z as JUNO_STORAGE_ERROR_CHUNK_NOT_FOUND,Z as JUNO_STORAGE_ERROR_CHUNK_NOT_INCLUDED_IN_BATCH,q as JUNO_STORAGE_ERROR_CHUNK_TO_COMMIT_NOT_FOUND,b as JUNO_STORAGE_ERROR_RESERVED_ASSET,W as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,w as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED,X as JUNO_STORAGE_ERROR_UPLOAD_PATH_COLLECTION_PREFIX,_ as isSatelliteError};
//# sourceMappingURL=index.js.map