Class APIRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.m0nk3y2k4.thetvdb.api.exception.APIRuntimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
APIPreconditionException
public class APIRuntimeException extends RuntimeException
Unchecked runtime exception for API related issues. Exceptions of this type will mostly be used by the internal implementation to indicate failed validations, invalid settings or unsupported character encoding.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
API_PRECONDITION_ERROR
Indicates a failed precondition check
-
Constructor Summary
Constructors Constructor Description APIRuntimeException(String message)
Creates a new unchecked API runtime exception with the given error messageAPIRuntimeException(String message, Exception ex)
Creates a nested unchecked API runtime exception wrapping some other root exceptionAPIRuntimeException(String message, String details)
Creates a new unchecked API runtime exception with an extended error message
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
API_PRECONDITION_ERROR
public static final String API_PRECONDITION_ERROR
Indicates a failed precondition check- See Also:
- Constant Field Values
-
-
Constructor Detail
-
APIRuntimeException
public APIRuntimeException(String message)
Creates a new unchecked API runtime exception with the given error message- Parameters:
message
- Brief error message describing the general problem
-
APIRuntimeException
public APIRuntimeException(@Nonnull String message, @Nonnull String details)
Creates a new unchecked API runtime exception with an extended error message- Parameters:
message
- Brief error message describing the general problem. This message may contain a single %s conversion which will be automatically replaced with the givendetails
message text.details
- A more detailed error description
-
-