Top Description Fields Constructors Methods
org.apache.avalon.framework.service

public Class ServiceException

extends CascadingException
Class Inheritance
Imports
org.apache.avalon.framework.CascadingException

The exception thrown to indicate a problem with service. It is usually thrown by ServiceManager or ServiceSelector.
Author
Avalon Development Team
Version
$Id: ServiceException.java 506231 2007-02-12 02:36:54Z crossley $

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
ServiceException(final String
the exception message
message
,
final Throwable
the throwable
throwable
)

Deprecated use the String,String,Throwable version instead
Construct a new ServiceException instance.
public
ServiceException(final String
the lookup key
key
,
final String
the exception message
message
,
final Throwable
the throwable
throwable
)

Construct a new ServiceException instance.

public
ServiceException(final String
the exception message
message
)

Deprecated use the String,String version instead
Construct a new ServiceException instance.
public
ServiceException(final String
the lookup key
key
,
final String
the exception message
message
)

Construct a new ServiceException instance.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the lookup key triggering the exception
getKey
()

Return the key that caused the exception.

public String

Returns:

a message.
getMessage
()

Overrides java.lang.Throwable.getMessage.

Override super's message to add role if applicable.
public String

Returns:

the the lookup key triggering the exception
getRole
()

Deprecated Use getKey() instead
Return the role that caused the exception
Inherited from org.apache.avalon.framework.CascadingException:
getCause

Field Detail

m_keyback to summary
private final String m_key

Constructor Detail

ServiceExceptionback to summary
public ServiceException(final String message, final Throwable throwable)

Deprecated

use the String,String,Throwable version instead

Construct a new ServiceException instance.

Parameters
message:String

the exception message

throwable:Throwable

the throwable

ServiceExceptionback to summary
public ServiceException(final String key, final String message, final Throwable throwable)

Construct a new ServiceException instance.

Parameters
key:String

the lookup key

message:String

the exception message

throwable:Throwable

the throwable

ServiceExceptionback to summary
public ServiceException(final String message)

Deprecated

use the String,String version instead

Construct a new ServiceException instance.

Parameters
message:String

the exception message

ServiceExceptionback to summary
public ServiceException(final String key, final String message)

Construct a new ServiceException instance.

Parameters
key:String

the lookup key

message:String

the exception message

Method Detail

getKeyback to summary
public String getKey()

Return the key that caused the exception.

Returns:String

the lookup key triggering the exception

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Override super's message to add role if applicable.

Returns:String

a message.

getRoleback to summary
public String getRole()

Deprecated

Use getKey() instead

Return the role that caused the exception

Returns:String

the the lookup key triggering the exception