Package com.onfido.exceptions
Class OnfidoException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.onfido.exceptions.OnfidoException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApiException
public class OnfidoException extends Exception
An exception thrown by this client library.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnfidoException(String message)Instantiates a new OnfidoException.OnfidoException(String message, Throwable cause)Instantiates a new OnfidoException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OnfidoExceptionnetworkError(Throwable cause)Throws a new OnfidoException with a network timeout message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OnfidoException
public OnfidoException(String message, Throwable cause)
Instantiates a new OnfidoException.- Parameters:
message- the messagecause- the cause
-
OnfidoException
public OnfidoException(String message)
Instantiates a new OnfidoException.- Parameters:
message- the message
-
-
Method Detail
-
networkError
public static OnfidoException networkError(Throwable cause)
Throws a new OnfidoException with a network timeout message.- Parameters:
cause- the cause- Returns:
- the onfido exception
-
-