Package com.wireguard.android.backend
Class BackendException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.wireguard.android.backend.BackendException
-
- All Implemented Interfaces:
java.io.Serializable
public final class BackendException extends java.lang.ExceptionA subclass ofExceptionthat encapsulates the reasons for a failure originating in implementations ofBackend.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackendException.ReasonEnum class containing all known reasons for why aBackendExceptionmight be thrown.
-
Constructor Summary
Constructors Constructor Description BackendException(BackendException.Reason reason, java.lang.Object... format)Public constructor for BackendException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]getFormat()Get the format string values associated with the instance.BackendException.ReasongetReason()Get the reason for this exception.
-
-
-
Constructor Detail
-
BackendException
public BackendException(BackendException.Reason reason, java.lang.Object... format)
Public constructor for BackendException.- Parameters:
reason- TheBackendException.Reasonwhich caused this exception to be thrownformat- Format string values used when converting exceptions to user-facing strings.
-
-
Method Detail
-
getFormat
public java.lang.Object[] getFormat()
Get the format string values associated with the instance.- Returns:
- Array of
Objectfor string formatting purposes
-
getReason
public BackendException.Reason getReason()
Get the reason for this exception.- Returns:
- Associated
BackendException.Reasonfor this exception.
-
-