Base error class thrown by SDK methods when no domain-specific error applies.
try { await mobilelocker.user.get()} catch (err) { if (err instanceof MobileLockerError && err.code === GeneralErrorCode.NotConnected) { showOfflineBanner() }} Copy
try { await mobilelocker.user.get()} catch (err) { if (err instanceof MobileLockerError && err.code === GeneralErrorCode.NotConnected) { showOfflineBanner() }}
Readonly
Machine-readable error code. Use GeneralErrorCode constants for comparisons.
Optional
Base error class thrown by SDK methods when no domain-specific error applies.
Example