com.ls.lars.communication
Class ServiceException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ls.BaseException
|
+--com.ls.lars.LarsException
|
+--com.ls.lars.communication.ServiceException
- All Implemented Interfaces:
- Serializable
- public class ServiceException
- extends LarsException
service exception handling class
- Version:
- $Revision: 1.2 $
- Author:
- Last modified by $Author: ODrugan $
- See Also:
- Serialized Form
Constructor Summary |
ServiceException()
creates a ServiceException with no specified detail message |
ServiceException(String description)
creates a ServiceException with the specified detail message |
Method Summary |
void |
addFailedAgentName(String failedAgentName)
adds an agent name to the collection of agents, for whom this service exception is valid |
void |
clearFailedAgentNames()
clears the collection of all agent names, for whom this service exception is valid |
Collection |
getFailedAgentNames()
returns all agent names, for whom this service exception is valid |
String |
getMessage()
Returns the detail message, including the collection of agents, for whom this service exception is valid (if
there exists such a collection). |
ServiceException
public ServiceException()
- creates a
ServiceException
with no specified detail message
ServiceException
public ServiceException(String description)
- creates a
ServiceException
with the specified detail message
- Parameters:
description
- the detail message
addFailedAgentName
public void addFailedAgentName(String failedAgentName)
- adds an agent name to the collection of agents, for whom this service exception is valid
- Parameters:
failedAgentName
- name of the agent, for whom this service exception is valid
clearFailedAgentNames
public void clearFailedAgentNames()
- clears the collection of all agent names, for whom this service exception is valid
getFailedAgentNames
public Collection getFailedAgentNames()
- returns all agent names, for whom this service exception is valid
- Returns:
- the name of the agents that failed
getMessage
public String getMessage()
- Returns the detail message, including the collection of agents, for whom this service exception is valid (if
there exists such a collection).
- Overrides:
getMessage
in class BaseException
- Returns:
- well formatted detail message