|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opennms.netmgt.scriptd.helper.SnmpTrapHelperException
public class SnmpTrapHelperException
This class describes an exception associated with the SnmpTrapHelper class. If the described exception was caused by some other exception (e.g. an exception associated with the JoeSNMP library), that exception will be included as the "cause". The getMessage and printStackTrace methods are overridden, in order to describe the "cause" exception, where present.
| Constructor Summary | |
|---|---|
SnmpTrapHelperException(String message)
Construct an SnmpTrapHelperException with the specified message. |
|
SnmpTrapHelperException(String message,
Throwable cause)
Construct an SnmpTrapHelperException with the specified message and cause. |
|
| Method Summary | |
|---|---|
String |
getMessage()
Get the message associated with this exception. |
void |
printStackTrace()
Print the stack trace associated with this exception to System.err. |
void |
printStackTrace(PrintStream ps)
Print the stack trace associated with this exception to the specified print stream. |
void |
printStackTrace(PrintWriter pw)
Print the stack trace associated with this exception to the specified print writer. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SnmpTrapHelperException(String message)
message - The message to be associated with the exception.
public SnmpTrapHelperException(String message,
Throwable cause)
message - The message to be associated with the exception.cause - The cause exception to be associated with the exception.| Method Detail |
|---|
public String getMessage()
getMessage in class Throwablepublic void printStackTrace(PrintStream ps)
printStackTrace in class Throwableps - The print steam to which the stack trace should be printed.public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter pw)
printStackTrace in class Throwablepw - The print writer to which the stack trace should be printed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||