org.gcube.common.clients.exceptions
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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
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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

ServiceException

public ServiceException(String msg,
                        Throwable cause)
Creates an instance with a given message and an underlying cause.

Parameters:
msg - the message
cause - the cause


Copyright © 2012. All Rights Reserved.