Package org.mozilla.geckoview
Class PageExtractionController.PageExtractionException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- PageExtractionController
The exception thrown when a page extraction fails
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAn error identifier for when the result is malformed e.g.static final StringAn error identifier for when the result is unexpectedly nullstatic final StringAn error identifier for when an unknown error occurs.final StringThe type of the error. -
Constructor Summary
ConstructorsConstructorDescriptionPageExtractionException(String errorType) Construct a new page extraction exception.PageExtractionException(String errorType, Throwable cause) Construct a new page extraction exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_NULL_RESULT
An error identifier for when the result is unexpectedly null- See Also:
-
ERROR_MALFORMED_RESULT
An error identifier for when the result is malformed e.g. the `text` key is missing- See Also:
-
ERROR_UNKNOWN
An error identifier for when an unknown error occurs. This is likely to happen if an error occurs in the toolkit layer that we don't know already know of.- See Also:
-
errorType
-
-
Constructor Details
-
PageExtractionException
Construct a new page extraction exception.- Parameters:
errorType- the type of the error. One ofERROR_NULL_RESULT,ERROR_MALFORMED_RESULTorERROR_UNKNOWN
-
PageExtractionException
Construct a new page extraction exception.- Parameters:
errorType- the type of error. One ofERROR_NULL_RESULT,ERROR_MALFORMED_RESULTorERROR_UNKNOWNcause- the cause of the error
-