-
- All Implemented Interfaces:
-
java.io.Serializable
public final class ExceptionHandler extends Exception
Project Name: OSMOS-Android-SDK File Name: ExceptionHandler
Custom exception class for WebService errors. Contains structured error information that can be passed to ErrorCallback.
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandler(OsmosError error, Throwable cause)Constructor using Error enum with default message ExceptionHandler(OsmosError error, String customMessage, Throwable cause)Constructor using Error enum with custom message ExceptionHandler(String errorCode, String errorMessage, Throwable cause)
-
Method Summary
Modifier and Type Method Description final StringgetErrorCode()final StringgetErrorMessage()ThrowablegetCause()StringgetMessage()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ExceptionHandler
ExceptionHandler(OsmosError error, Throwable cause)
Constructor using Error enum with default message
-
ExceptionHandler
ExceptionHandler(OsmosError error, String customMessage, Throwable cause)
Constructor using Error enum with custom message
-
-
Method Detail
-
getErrorCode
final String getErrorCode()
-
getErrorMessage
final String getErrorMessage()
-
getMessage
String getMessage()
-
-
-
-