Class TunnelingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.castlabs.android.player.exceptions.TunnelingException
All Implemented Interfaces:
Serializable

public class TunnelingException extends Exception
Exception that is raised when tunneling mode can not be enabled because of specified reasons.
Since:
4.2.74
See Also:
  • Field Details

  • 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

      @NonNull public String reasonString()
      Returns a string representation of the reason for this exception.
      Returns:
      A string representation of the reason.
    • reasonString

      @NonNull public static String reasonString(@Nullable TunnelingException.Reason reason)
      Returns a string representation of the given reason.
      Parameters:
      reason - The reason.
      Returns:
      A string representation of the reason.