Class AIFeaturesController.AIFeaturesException

Object
Throwable
Exception
org.mozilla.geckoview.AIFeaturesController.AIFeaturesException
All Implemented Interfaces:
Serializable
Enclosing class:
AIFeaturesController

public static class AIFeaturesController.AIFeaturesException extends Exception
An exception for when there is an issue communicating with the AI features toolkit.
See Also:
  • Field Details

    • ERROR_UNKNOWN

      public static final int ERROR_UNKNOWN
      Default error for unexpected issues.
      See Also:
    • ERROR_COULD_NOT_PARSE

      public static final int ERROR_COULD_NOT_PARSE
      An issue with deserialization or null result.
      See Also:
    • ERROR_UNKNOWN_FEATURE

      public static final int ERROR_UNKNOWN_FEATURE
      The requested AI feature ID is not recognized.
      See Also:
    • ERROR_COULD_NOT_SET

      public static final int ERROR_COULD_NOT_SET
      Could not enable or block the AI feature.
      See Also:
    • ERROR_COULD_NOT_MAKE_AVAILABLE

      public static final int ERROR_COULD_NOT_MAKE_AVAILABLE
      Could not make the AI feature available.
      See Also:
    • code

      public final int code
      AIFeaturesController.AIFeaturesException.Code that provides more information about this exception.
  • Constructor Details

    • AIFeaturesException

      public AIFeaturesException(int code)
      Construct an [AIFeaturesException]
      Parameters:
      code - Error code the given exception corresponds to.
  • Method Details