An error object with code and respective message.
Specific error code string detailing the kind of error being thrown.
Error is thrown whenever bad configuration is provided to an OkHi service.
Error is thrown whenever bad configuration is provided to an OkHi service.
Error is thrown whenever an invalid phone number is provided to a service that requires a user's phone number.
Error is thrown whenever an invalid phone number is provided to a service that requires a user's phone number.
Error is thrown when the device can't connect to OkHi's servers.
Error is thrown when the device can't connect to OkHi's servers.
Error is thrown whenever a particular permission is required for a service to run and isn't granted by the user.
Error is thrown whenever a particular device service is required for a library to run and isn't granted by the user.
Error is thrown whenever there's an issue with the credentials provided.
Error is thrown whenever there's an issue with the credentials provided.
Error is thrown whenever there's an unknown error that occured during the usage of one of OkHi's services.
Error is thrown whenever there's an unknown error that occured during the usage of one of OkHi's services.
Error is thrown whenever an OkHi service is run on an unsupported platform.
Error is thrown whenever an OkHi service is run on an unsupported platform.
Generated 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.