UNPKG

@junobuild/errors

Version:

A collection of predefined error constants and utilities for Juno applications.

3 lines (2 loc) 8.14 kB
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",t="juno.cdn.proposals.error.cannot_commit",O="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",u="juno.cdn.storage.error.cannot_get_asset_unknown_reference_id",U="juno.cdn.storage.error.cannot_insert_asset_encoding_unknown_reference_id",C="juno.cdn.storage.error.no_proposal_found",D="juno.cdn.storage.error.invalid_releases_path",d="juno.cdn.storage.error.missing_releases_description",L="juno.cdn.storage.error.invalid_releases_description",l="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",g="juno.collections.error.prefix_reserved";var f="juno.error.no_timestamp_provided",V="juno.error.timestamp_outdated_or_future",v="juno.error.no_version_provided",F="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",b="juno.storage.error.cannot_commit_invalid_collection",k="juno.storage.error.cannot_commit_batch",y="juno.storage.error.asset_not_found",B="juno.storage.error.cannot_read_asset",K="juno.storage.error.upload_path_collection_prefix",Y="juno.storage.error.reserved_asset",X="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.auth.error.caller.not_allowed",R_="juno.datastore.error.user.cannot_update",t_="juno.datastore.error.user.invalid_data",O_="juno.datastore.error.user.caller_key",n_="juno.datastore.error.user.key_no_principal",E_="juno.datastore.error.user.not_allowed",N_="juno.datastore.error.user.webauthn.aaguid_invalid_length",s_="juno.datastore.error.user.webauthn.provider_invalid_data",c_="juno.datastore.error.user.webauthn.provider_webauthn_invalid_data",T_="juno.datastore.error.user.usage.change_limit_reached",a_="juno.datastore.error.user.usage.invalid_data",A_="juno.datastore.error.user.webauthn.cannot_update",S_="juno.datastore.error.user.webauthn.invalid_data",p_="juno.datastore.error.user.webauthn.caller_key";var U_="juno.error.controllers.max_number",C_="juno.error.controllers.anonymous_not_allowed",D_="juno.error.controllers.revoked_not_allowed",d_="juno.error.memory.stable_exceeded",L_="juno.error.memory.heap_exceeded",l_="juno.error.cycles.deposit_balance_low",I_="juno.error.cycles.deposit_failed",i_="juno.error.canister.create_failed",x_="juno.error.canister.install_code_failed",j_="juno.error.segment.stop_failed",J_="juno.error.segment.delete_failed",P_="juno.error.cmc.call_ledger_failed",m_="juno.error.cmc.ledger_transfer_failed",M_="juno.error.cmc.top_up_failed",g_="juno.error.cmc.call_create_canister_failed",G_="juno.error.cmc.create_canister_failed",f_="juno.error.cmc.install_code_failed",V_="juno.error.invalid_regex";export{e_ as JUNO_AUTH_ERROR_CALLER_NOT_ALLOWED,__ 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,t as JUNO_CDN_PROPOSALS_ERROR_CANNOT_COMMIT,O 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,u 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,l as JUNO_CDN_STORAGE_ERROR_INVALID_COLLECTION,L as JUNO_CDN_STORAGE_ERROR_INVALID_RELEASES_DESCRIPTION,D as JUNO_CDN_STORAGE_ERROR_INVALID_RELEASES_PATH,d as JUNO_CDN_STORAGE_ERROR_MISSING_RELEASES_DESCRIPTION,C 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,g 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,N_ as JUNO_DATASTORE_ERROR_USER_AAGUID_INVALID_LENGTH,O_ as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,R_ as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,t_ as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,n_ as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,E_ as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,s_ as JUNO_DATASTORE_ERROR_USER_PROVIDER_INVALID_DATA,c_ as JUNO_DATASTORE_ERROR_USER_PROVIDER_WEBAUTHN_INVALID_DATA,T_ as JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED,a_ as JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA,p_ as JUNO_DATASTORE_ERROR_USER_WEBAUTHN_CALLER_KEY,A_ as JUNO_DATASTORE_ERROR_USER_WEBAUTHN_CANNOT_UPDATE,S_ as JUNO_DATASTORE_ERROR_USER_WEBAUTHN_INVALID_DATA,i_ as JUNO_ERROR_CANISTER_CREATE_FAILED,x_ as JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED,g_ as JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED,P_ as JUNO_ERROR_CMC_CALL_LEDGER_FAILED,G_ as JUNO_ERROR_CMC_CREATE_CANISTER_FAILED,f_ as JUNO_ERROR_CMC_INSTALL_CODE_FAILED,m_ as JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED,M_ as JUNO_ERROR_CMC_TOP_UP_FAILED,C_ as JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED,U_ as JUNO_ERROR_CONTROLLERS_MAX_NUMBER,D_ as JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED,l_ as JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW,I_ as JUNO_ERROR_CYCLES_DEPOSIT_FAILED,V_ as JUNO_ERROR_INVALID_REGEX,L_ as JUNO_ERROR_MEMORY_HEAP_EXCEEDED,d_ as JUNO_ERROR_MEMORY_STABLE_EXCEEDED,f as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,v as JUNO_ERROR_NO_VERSION_PROVIDED,J_ as JUNO_ERROR_SEGMENT_DELETE_FAILED,j_ as JUNO_ERROR_SEGMENT_STOP_FAILED,V as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,F as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,Q as JUNO_STORAGE_ERROR_ASSET_MAX_ALLOWED_SIZE,y as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,X as JUNO_STORAGE_ERROR_BATCH_NOT_FOUND,k as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,b as JUNO_STORAGE_ERROR_CANNOT_COMMIT_INVALID_COLLECTION,B 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,Y as JUNO_STORAGE_ERROR_RESERVED_ASSET,W as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,w as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED,K as JUNO_STORAGE_ERROR_UPLOAD_PATH_COLLECTION_PREFIX,_ as isSatelliteError}; //# sourceMappingURL=index.js.map