Mobile Locker JavaScript SDK
    Preparing search index...

    Class MobileLockerError

    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()
    }
    }

    Hierarchy

    • Error
      • MobileLockerError
    Index

    Constructors

    Properties

    Constructors

    Properties

    Machine-readable error code. Use GeneralErrorCode constants for comparisons.

    message: string
    name: string
    stack?: string