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
public class ServiceException extends RuntimeException
An exceptions that occurs in the attempt to communicate with service endpoints.- Author:
- Fabio Simeoni
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceException()Creates 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 Detail
-
ServiceException
public ServiceException()
Creates an instance.
-
ServiceException
public ServiceException(String msg)
Creates an instance with a given message.- Parameters:
msg- the message
-
ServiceException
public ServiceException(Throwable cause)
Creates an instance from an underlying cause.- Parameters:
cause- the cause
-
-