An error object with code and respective message.
Optional causeSpecific error code string detailing the kind of error being thrown.
Optional stackStatic BAD_Error is thrown whenever bad configuration is provided to an OkHi service.
Static BAD_Error is thrown whenever bad configuration is provided to an OkHi service.
Static INVALID_Error is thrown whenever an invalid phone number is provided to a service that requires a user's phone number.
Static INVALID_Error is thrown whenever an invalid phone number is provided to a service that requires a user's phone number.
Static LOCATION_Error is thrown when location services is unavailable.
Static NETWORK_Error is thrown when the device can't connect to OkHi's servers.
Static NETWORK_Error is thrown when the device can't connect to OkHi's servers.
Static PERMISSION_Error is thrown whenever a particular permission is required for a service to run and isn't granted by the user.
Static PLAY_Error is thrown when play services is unavailable.
Static SERVICE_Error is thrown whenever a particular device service is required for a library to run and isn't granted by the user.
Static UNAUTHORIZED_Error is thrown whenever there's an issue with the credentials provided.
Static UNAUTHORIZED_Error is thrown whenever there's an issue with the credentials provided.
Static UNKNOWN_Error is thrown whenever there's an unknown error that occured during the usage of one of OkHi's services.
Static UNKNOWN_Error is thrown whenever there's an unknown error that occured during the usage of one of OkHi's services.
Static UNSUPPORTED_Error is thrown whenever an OkHi service is run on an unsupported platform.
Static UNSUPPORTED_Error is thrown whenever an OkHi service is run on an unsupported platform.
Static Optional prepareOptional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static stackStatic captureGenerated using TypeDoc
The OkHiException class extends the Error class to provide additional information regarding the type of errors thrown while running any OkHiLibraries. It contains static string properties that can be used to evaluate the kind of errors being thrown and handle them appropriately.