@junobuild/errors
Version:
A collection of predefined error constants and utilities for Juno applications.
3 lines (2 loc) • 9.8 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",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.no_content_chunks_at_index",s="juno.cdn.proposals.error.empty_assets",a="juno.cdn.proposals.error.cannot_delete_assets",A="juno.cdn.proposals.error.cannot_delete_assets_invalid_status",T="juno.cdn.proposals.error.next_id_convert",c="juno.cdn.proposals.error.next_id_overflow",u="juno.cdn.storage.error.cannot_insert_asset_unknown_reference_id",U="juno.cdn.storage.error.cannot_get_asset_unknown_reference_id",S="juno.cdn.storage.error.cannot_insert_asset_encoding_unknown_reference_id",p="juno.cdn.storage.error.no_proposal_found",L="juno.cdn.storage.error.invalid_releases_path",I="juno.cdn.storage.error.missing_releases_description",i="juno.cdn.storage.error.invalid_releases_description",l="juno.cdn.storage.error.invalid_collection";var D="juno.collections.error.modify_reserved_collection",C="juno.collections.error.reserved_name",x="juno.collections.error.reserved_collection",j="juno.collections.error.rate_config_enabled",J="juno.collections.error.prefix_deletion",P="juno.collections.error.not_empty",m="juno.collections.error.not_found",M="juno.collections.error.prefix_reserved";var G="juno.error.no_timestamp_provided",f="juno.error.timestamp_outdated_or_future",h="juno.error.no_version_provided",V="juno.error.version_outdated_or_future",v="juno.datastore.error.cannot_write",F="juno.datastore.error.cannot_read",H="juno.storage.error.upload_not_allowed",w="juno.storage.error.set_not_allowed",W="juno.storage.error.cannot_commit_invalid_collection",b="juno.storage.error.cannot_commit_batch",k="juno.storage.error.asset_not_found",K="juno.storage.error.cannot_read_asset",Y="juno.storage.error.upload_path_collection_prefix",y="juno.storage.error.reserved_asset",B="juno.storage.error.batch_not_found",X="juno.storage.error.chunk_not_found",z="juno.storage.error.chunk_not_included_in_batch",Z="juno.storage.error.asset_max_allowed_size",q="juno.auth.error.not_admin_controller",Q="juno.auth.error.invalid_origin",$="juno.auth.error.not_write_controller",__="juno.auth.error.not_controller",o_="juno.auth.error.caller.not_allowed",r_="juno.auth.error.not_configured",e_="juno.auth.error.automation_not_configured",R_="juno.auth.error.openid_disabled",t_="juno.automation.token.error.missing_jti",O_="juno.automation.token.error.token_reused",n_="juno.automation.workflow.error.missing_repository",E_="juno.automation.workflow.error.missing_run_id",N_="juno.datastore.error.automation.caller",s_="juno.datastore.error.user.cannot_update",a_="juno.datastore.error.user.invalid_data",A_="juno.datastore.error.user.caller_key",T_="juno.datastore.error.user.key_no_principal",c_="juno.datastore.error.user.not_allowed",u_="juno.datastore.error.user.webauthn.aaguid_invalid_length",U_="juno.datastore.error.user.webauthn.provider_invalid_data",S_="juno.datastore.error.user.webauthn.provider_webauthn_invalid_data",p_="juno.datastore.error.user.register.provider_invalid_data",L_="juno.auth.error.profile.data.email_invalid_length",I_="juno.auth.error.profile.data.name_invalid_length",i_="juno.auth.error.profile.data.given_name_invalid_length",l_="juno.auth.error.profile.data.family_name_invalid_length",d_="juno.auth.error.profile.data.preferred_username_invalid_length",D_="juno.auth.error.profile.data.locale_invalid_length",C_="juno.auth.error.profile.data.picture_invalid_url",x_="juno.auth.error.profile.data.picture_invalid_scheme",j_="juno.datastore.error.user.usage.change_limit_reached",J_="juno.datastore.error.user.usage.invalid_data",P_="juno.datastore.error.user.webauthn.cannot_update",m_="juno.datastore.error.user.webauthn.invalid_data",M_="juno.datastore.error.user.webauthn.caller_key";var G_="juno.error.controllers.max_number",f_="juno.error.controllers.anonymous_not_allowed",h_="juno.error.controllers.revoked_not_allowed",V_="juno.error.controllers.admin_no_expire",v_="juno.error.controllers.expiry_in_past",F_="juno.error.memory.stable_exceeded",H_="juno.error.memory.heap_exceeded",w_="juno.error.cycles.deposit_balance_low",W_="juno.error.cycles.deposit_failed",b_="juno.error.canister.create_failed",k_="juno.error.canister.install_code_failed",K_="juno.error.segment.stop_failed",Y_="juno.error.segment.delete_failed",y_="juno.error.cmc.call_ledger_failed",B_="juno.error.cmc.ledger_transfer_failed",X_="juno.error.cmc.call_create_canister_failed",z_="juno.error.cmc.create_canister_failed",Z_="juno.error.cmc.install_code_failed",q_="juno.error.invalid_regex";export{e_ as JUNO_AUTH_ERROR_AUTOMATION_NOT_CONFIGURED,o_ as JUNO_AUTH_ERROR_CALLER_NOT_ALLOWED,Q as JUNO_AUTH_ERROR_INVALID_ORIGIN,q as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,r_ as JUNO_AUTH_ERROR_NOT_CONFIGURED,__ as JUNO_AUTH_ERROR_NOT_CONTROLLER,$ as JUNO_AUTH_ERROR_NOT_WRITE_CONTROLLER,R_ as JUNO_AUTH_ERROR_OPENID_DISABLED,L_ as JUNO_AUTH_ERROR_PROFILE_EMAIL_INVALID_LENGTH,l_ as JUNO_AUTH_ERROR_PROFILE_FAMILY_NAME_INVALID_LENGTH,i_ as JUNO_AUTH_ERROR_PROFILE_GIVEN_NAME_INVALID_LENGTH,D_ as JUNO_AUTH_ERROR_PROFILE_LOCALE_INVALID_LENGTH,I_ as JUNO_AUTH_ERROR_PROFILE_NAME_INVALID_LENGTH,x_ as JUNO_AUTH_ERROR_PROFILE_PICTURE_INVALID_SCHEME,C_ as JUNO_AUTH_ERROR_PROFILE_PICTURE_INVALID_URL,d_ as JUNO_AUTH_ERROR_PROFILE_PREFERRED_USERNAME_INVALID_LENGTH,t_ as JUNO_AUTOMATION_TOKEN_ERROR_MISSING_JTI,O_ as JUNO_AUTOMATION_TOKEN_ERROR_TOKEN_REUSED,n_ as JUNO_AUTOMATION_WORKFLOW_ERROR_MISSING_REPOSITORY,E_ as JUNO_AUTOMATION_WORKFLOW_ERROR_MISSING_RUN_ID,t as JUNO_CDN_PROPOSALS_ERROR_CANNOT_COMMIT,O as JUNO_CDN_PROPOSALS_ERROR_CANNOT_COMMIT_INVALID_STATUS,a 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,s as JUNO_CDN_PROPOSALS_ERROR_EMPTY_ASSETS,n as JUNO_CDN_PROPOSALS_ERROR_INVALID_HASH,T as JUNO_CDN_PROPOSALS_ERROR_NEXT_ID_CONVERT,c as JUNO_CDN_PROPOSALS_ERROR_NEXT_ID_OVERFLOW,N 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,S as JUNO_CDN_STORAGE_ERROR_CANNOT_INSERT_ASSET_ENCODING_UNKNOWN_REFERENCE_ID,u as JUNO_CDN_STORAGE_ERROR_CANNOT_INSERT_ASSET_UNKNOWN_REFERENCE_ID,l as JUNO_CDN_STORAGE_ERROR_INVALID_COLLECTION,i as JUNO_CDN_STORAGE_ERROR_INVALID_RELEASES_DESCRIPTION,L as JUNO_CDN_STORAGE_ERROR_INVALID_RELEASES_PATH,I as JUNO_CDN_STORAGE_ERROR_MISSING_RELEASES_DESCRIPTION,p as JUNO_CDN_STORAGE_ERROR_NO_PROPOSAL_FOUND,P as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY,m as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND,J as JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED,D as JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION,M as JUNO_COLLECTIONS_ERROR_PREFIX_RESERVED,j as JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED,x as JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION,C as JUNO_COLLECTIONS_ERROR_RESERVED_NAME,N_ as JUNO_DATASTORE_ERROR_AUTOMATION_CALLER,F as JUNO_DATASTORE_ERROR_CANNOT_READ,v as JUNO_DATASTORE_ERROR_CANNOT_WRITE,u_ as JUNO_DATASTORE_ERROR_USER_AAGUID_INVALID_LENGTH,A_ as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,s_ as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,a_ as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,T_ as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,c_ as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,U_ as JUNO_DATASTORE_ERROR_USER_PROVIDER_INVALID_DATA,S_ as JUNO_DATASTORE_ERROR_USER_PROVIDER_WEBAUTHN_INVALID_DATA,p_ as JUNO_DATASTORE_ERROR_USER_REGISTER_PROVIDER_INVALID_DATA,j_ as JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED,J_ as JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA,M_ as JUNO_DATASTORE_ERROR_USER_WEBAUTHN_CALLER_KEY,P_ as JUNO_DATASTORE_ERROR_USER_WEBAUTHN_CANNOT_UPDATE,m_ as JUNO_DATASTORE_ERROR_USER_WEBAUTHN_INVALID_DATA,b_ as JUNO_ERROR_CANISTER_CREATE_FAILED,k_ as JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED,X_ as JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED,y_ as JUNO_ERROR_CMC_CALL_LEDGER_FAILED,z_ as JUNO_ERROR_CMC_CREATE_CANISTER_FAILED,Z_ as JUNO_ERROR_CMC_INSTALL_CODE_FAILED,B_ as JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED,V_ as JUNO_ERROR_CONTROLLERS_ADMIN_NO_EXPIRY,f_ as JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED,v_ as JUNO_ERROR_CONTROLLERS_EXPIRY_IN_PAST,G_ as JUNO_ERROR_CONTROLLERS_MAX_NUMBER,h_ as JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED,w_ as JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW,W_ as JUNO_ERROR_CYCLES_DEPOSIT_FAILED,q_ as JUNO_ERROR_INVALID_REGEX,H_ as JUNO_ERROR_MEMORY_HEAP_EXCEEDED,F_ as JUNO_ERROR_MEMORY_STABLE_EXCEEDED,G as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,h as JUNO_ERROR_NO_VERSION_PROVIDED,Y_ as JUNO_ERROR_SEGMENT_DELETE_FAILED,K_ as JUNO_ERROR_SEGMENT_STOP_FAILED,f as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,V as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,Z as JUNO_STORAGE_ERROR_ASSET_MAX_ALLOWED_SIZE,k as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,B as JUNO_STORAGE_ERROR_BATCH_NOT_FOUND,b as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,W as JUNO_STORAGE_ERROR_CANNOT_COMMIT_INVALID_COLLECTION,K as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,X as JUNO_STORAGE_ERROR_CHUNK_NOT_FOUND,z as JUNO_STORAGE_ERROR_CHUNK_NOT_INCLUDED_IN_BATCH,y as JUNO_STORAGE_ERROR_RESERVED_ASSET,w as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,H as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED,Y as JUNO_STORAGE_ERROR_UPLOAD_PATH_COLLECTION_PREFIX,_ as isSatelliteError};
//# sourceMappingURL=index.js.map