Skip to content

MobileLockerCRMError

Defined in: errors.ts:97

Thrown by mobilelocker.crm.* methods on CRM-specific failures.

Check code against CRMErrorCode constants to handle specific cases such as expired auth or invalid SOQL.

new MobileLockerCRMError(
message,
code,
crmMessage?): MobileLockerCRMError;

Defined in: errors.ts:102

Parameter Type
message string
code CRMErrorCode
crmMessage? string

MobileLockerCRMError

MobileLockerError.constructor

readonly code: CRMErrorCode;

Defined in: errors.ts:98

Machine-readable error code. Prefer the *ErrorCode constants for comparisons.

MobileLockerError.code


readonly optional crmMessage?: string;

Defined in: errors.ts:100

The raw error message from the CRM, if available.