Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gcube.common.clients.exceptions.ServiceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DiscoveryException,InvalidRequestException,NoSuchEndpointException
An exceptions that occurs in the attempt to communicate with service endpoints.
- Author:
- Fabio Simeoni
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance.ServiceException(String msg) Creates an instance with a given message.ServiceException(String msg, Throwable cause) Creates an instance with a given message and an underlying cause.ServiceException(Throwable cause) Creates an instance from an underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
public ServiceException()Creates an instance. -
ServiceException
Creates an instance with a given message.- Parameters:
msg- the message
-
ServiceException
Creates an instance from an underlying cause.- Parameters:
cause- the cause
-
ServiceException
Creates an instance with a given message and an underlying cause.- Parameters:
msg- the messagecause- the cause
-