com.adventnet.utilities.common
Class AgentException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.adventnet.utilities.common.AgentException
- public class AgentException
- extends java.lang.Exception
This is the Exception Class to handle Agent Exceptions and to report Agent side Errors.
- See Also:
- Serialized Form
|
Constructor Summary |
AgentException(java.lang.Exception e)
Constructs a AgentException with the specified Exception. |
AgentException(java.lang.String s,
byte b)
Constructs a AgentException with the specified detail message. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
AgentException
public AgentException(java.lang.String s,
byte b)
- Constructs a AgentException with the specified detail message.
A detail message is a String that describes this particular exception.
- Parameters:
s - the detail message about he Exception.b - The Exceprion code.
AgentException
public AgentException(java.lang.Exception e)
- Constructs a AgentException with the specified Exception.
- Parameters:
e - the Exception.
getExceptionCode
public byte getExceptionCode()
- Getter for the Exception code.
- Returns:
- The Exception code required.
getExceptionString
public java.lang.String getExceptionString()
- Getter for the Exception String.
- Returns:
- The Exception String thrown.
getTargetException
public java.lang.Exception getTargetException()
- Getter for the Target Exception.
- Returns:
- The actual java.lang.Exception thrown.
printStackTrace
public void printStackTrace()
- This method is to Print the StackTrace of the Exceptions thrown.
- Overrides:
- printStackTrace in class java.lang.Throwable
toString
public java.lang.String toString()
- Used to give string representation.
- Overrides:
- toString in class java.lang.Throwable
- Returns:
- The String obtained.