NowServiceError class - Android

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • The NowServiceError sealed class that returns NowSDK errors.

    Table 1. Properties
    Name Type Description
    cause Throwable Cause of the error.
    message String Message that contains the error details to display to the user.
    Table 2. Errors returned by NowSDK feature services
    Type Description
    SDKNotConfigured The NowSDK was not configured. NowSDK.configure() was not called before creating the service.
    ServiceConfigurationInvalid The NowSDK was configured with invalid setting, such as a malformed instance URL.
    ServiceDisabled The associated service is turned off.

    If returned by NowVoiceSDK - makeVoiceService(instanceURL: URL), voice is turned off on the instance. To use NowVoice, sdk.voice.enabled must be true.

    ServiceSettingsInvalid Unable to process the service settings.

    If returned by NowVoiceSDK - makeVoiceService(instanceURL: URL), the sdk.voice.enabled key is missing from the instance settings.

    ServiceSettingsNotFound The instance doesn't have sdk.voice settings configured.
    ServiceSettingsRetrievalFailed A network or authentication error occurred. Unable to retrieve the NowSDK service settings from the ServiceNow instance.