Package org.gbif.api.exception
Class ServiceUnavailableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.gbif.api.exception.ServiceUnavailableException
-
- All Implemented Interfaces:
Serializable
public class ServiceUnavailableException extends RuntimeException
An unchecked exception that indicates that the service is not available. As this class is a runtime exception, there is no need for user code to catch it or subclasses if any error is to be considered fatal (the usual case).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceUnavailableException(String message)
ServiceUnavailableException(String message, Throwable cause)
Constructor for ServiceUnavailableException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServiceUnavailableException
public ServiceUnavailableException(String message, Throwable cause)
Constructor for ServiceUnavailableException.- Parameters:
message
- The message for the failurecause
- The cause of the failure
-
ServiceUnavailableException
public ServiceUnavailableException(String message)
- Parameters:
message
- The message for the failure
-
-