CRMErrorCode
const CRMErrorCode: { NotConnected: "not_connected"; ServerError: "server_error"; RequestTimeout: "request_timeout"; InvalidArgument: "invalid_argument"; UnsupportedEnvironment: "unsupported_environment"; NotFound: "not_found"; NotSupported: "crm_not_supported"; AuthExpired: "crm_auth_expired"; SOQLInvalid: "soql_invalid";};Defined in: errors.ts:29
Error codes for CRM-specific failures. Extends GeneralErrorCode.
Type Declaration
Section titled “Type Declaration”NotConnected
Section titled “NotConnected”readonly NotConnected: "not_connected" = 'not_connected';The device has no internet connection.
ServerError
Section titled “ServerError”readonly ServerError: "server_error" = 'server_error';The Mobile Locker server or an upstream API returned an unexpected error.
RequestTimeout
Section titled “RequestTimeout”readonly RequestTimeout: "request_timeout" = 'request_timeout';The request exceeded the configured timeout.
InvalidArgument
Section titled “InvalidArgument”readonly InvalidArgument: "invalid_argument" = 'invalid_argument';A caller-supplied argument failed validation.
UnsupportedEnvironment
Section titled “UnsupportedEnvironment”readonly UnsupportedEnvironment: "unsupported_environment" = 'unsupported_environment';The method is not supported in the current environment (e.g. iOS-only API in browser).
NotFound
Section titled “NotFound”readonly NotFound: "not_found" = 'not_found';The requested resource was not found.
NotSupported
Section titled “NotSupported”readonly NotSupported: "crm_not_supported" = 'crm_not_supported';The team’s CRM is not a supported provider (Salesforce, Veeva, or IQVIA).
AuthExpired
Section titled “AuthExpired”readonly AuthExpired: "crm_auth_expired" = 'crm_auth_expired';The CRM session has expired — the user must re-authenticate in the app.
SOQLInvalid
Section titled “SOQLInvalid”readonly SOQLInvalid: "soql_invalid" = 'soql_invalid';The SOQL query contains a syntax error.