Class TunnelingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.castlabs.android.player.exceptions.TunnelingException
- All Implemented Interfaces:
Serializable
Exception that is raised when tunneling mode can not be enabled because of specified reasons.
- Since:
- 4.2.74
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe reason why tunneling mode could not be enabled. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe reason for the exception. -
Method Summary
Modifier and TypeMethodDescriptionstatic TunnelingExceptioncreate(TunnelingException.Reason reason, String message) Creates a new TunnelingException.Returns a string representation of the reason for this exception.static StringReturns a string representation of the given reason.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
reason
The reason for the exception.
-
-
Method Details
-
create
@NonNull public static TunnelingException create(@Nullable TunnelingException.Reason reason, @NonNull String message) Creates a new TunnelingException.- Parameters:
reason- The reason for the exception.message- The detail message.- Returns:
- A new TunnelingException.
-
reasonString
Returns a string representation of the reason for this exception.- Returns:
- A string representation of the reason.
-
reasonString
Returns a string representation of the given reason.- Parameters:
reason- The reason.- Returns:
- A string representation of the reason.
-