org.springframework.richclient.application
Class ServiceNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.richclient.application.ServiceNotFoundException
All Implemented Interfaces:
Serializable

public class ServiceNotFoundException
extends RuntimeException

Indicates that an application service of a given type could not be found.

Since:
0.3
Author:
Kevin Stembridge
See Also:
Serialized Form

Constructor Summary
ServiceNotFoundException(Class serviceClass)
          Creates a new ServiceNotFoundException.
ServiceNotFoundException(String message, Class serviceClass)
          Creates a new ServiceNotFoundException with the given detail message and nested exception.
ServiceNotFoundException(String message, Class serviceClass, Throwable cause)
          Creates a new ServiceNotFoundException with the given detail message and nested exception.
 
Method Summary
 Class getServiceClass()
          Returns class of the application service that could not be located.
 
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

ServiceNotFoundException

public ServiceNotFoundException(Class serviceClass)
Creates a new ServiceNotFoundException. A default message containing the name of the given class will be used.

Parameters:
serviceClass - The class of the application service that could not be located.

ServiceNotFoundException

public ServiceNotFoundException(String message,
                                Class serviceClass)
Creates a new ServiceNotFoundException with the given detail message and nested exception.

Parameters:
message - The detail message.
serviceClass - The class of the application service that could not be located.
cause - An optional nested exception that occurred attempting to locate the service.

ServiceNotFoundException

public ServiceNotFoundException(String message,
                                Class serviceClass,
                                Throwable cause)
Creates a new ServiceNotFoundException with the given detail message and nested exception.

Parameters:
message - The detail message.
serviceClass - The class of the application service that could not be located.
cause - An optional nested exception that occurred attempting to locate the service.
Method Detail

getServiceClass

public Class getServiceClass()
Returns class of the application service that could not be located.

Returns:
Returns the service class.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.