JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3
Class ServiceNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.jboss.remoting3.RemotingException
                  extended by org.jboss.remoting3.ServiceOpenException
                      extended by org.jboss.remoting3.ServiceNotFoundException
All Implemented Interfaces:
Serializable

public class ServiceNotFoundException
extends ServiceOpenException

Service not found. This exception is thrown when a service is looked up which is not registered anywhere.

See Also:
Serialized Form

Constructor Summary
ServiceNotFoundException(URI uri)
          Constructs a ServiceNotFoundException with no detail message.
ServiceNotFoundException(URI uri, String msg)
          Constructs a ServiceNotFoundException with the specified detail message.
ServiceNotFoundException(URI uri, String msg, Throwable cause)
          Constructs a ServiceNotFoundException with the specified detail message and cause.
ServiceNotFoundException(URI uri, Throwable cause)
          Constructs a ServiceNotFoundException with the specified cause.
 
Method Summary
 String getMessage()
          Returns the detail message string of this throwable.
 URI getServiceUri()
          Get the service URI which could not be found.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

ServiceNotFoundException

public ServiceNotFoundException(URI uri)
Constructs a ServiceNotFoundException with no detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

Parameters:
uri - the service URI that could not be found

ServiceNotFoundException

public ServiceNotFoundException(URI uri,
                                String msg)
Constructs a ServiceNotFoundException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

Parameters:
uri - the service URI that could not be found
msg - the detail message

ServiceNotFoundException

public ServiceNotFoundException(URI uri,
                                Throwable cause)
Constructs a ServiceNotFoundException with the specified cause. The detail message is set to:
  (cause == null ? null : cause.toString())
(which typically contains the class and detail message of cause).

Parameters:
uri - the service URI that could not be found
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)

ServiceNotFoundException

public ServiceNotFoundException(URI uri,
                                String msg,
                                Throwable cause)
Constructs a ServiceNotFoundException with the specified detail message and cause.

Parameters:
uri - the service URI that could not be found
msg - the detail message
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)
Method Detail

getServiceUri

public URI getServiceUri()
Get the service URI which could not be found.

Returns:
the service URI

getMessage

public String getMessage()
Returns the detail message string of this throwable.

Overrides:
getMessage in class Throwable
Returns:
the detail message string of this throwable

JBoss Remoting 3.1.0.Beta1

Copyright © 2010 JBoss, a division of Red Hat, Inc.