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.Exception
A subclass ofException
that 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 class
BackendException.Reason
Enum class containing all known reasons for why aBackendException
might 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.Reason
getReason()
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.Reason
which 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
Object
for string formatting purposes
-
getReason
public BackendException.Reason getReason()
Get the reason for this exception.- Returns:
- Associated
BackendException.Reason
for this exception.
-
-