Package org.opennms.protocols.snmp
Class SnmpBadConversionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opennms.protocols.snmp.SnmpBadConversionException
-
- All Implemented Interfaces:
Serializable
public class SnmpBadConversionException extends Exception
Constructed when the library is unable to covert a value to another.- Author:
- Brian Weaver
- See Also:
SnmpIPAddress.convertToIpAddress()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnmpBadConversionException()
The exception constructorSnmpBadConversionException(Exception reason)
Constructs a new exception which is based upon a previous exception.SnmpBadConversionException(String why)
The exception constructor.SnmpBadConversionException(String why, Exception reason)
The exception constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printStackTrace()
Prints the stack trace of the exception.void
printStackTrace(PrintStream stream)
Prints the stack trace of the exception.void
printStackTrace(PrintWriter writer)
Prints the stack trace of the exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SnmpBadConversionException
public SnmpBadConversionException(String why)
The exception constructor.- Parameters:
why
- The message for the exception.
-
SnmpBadConversionException
public SnmpBadConversionException(String why, Exception reason)
The exception constructor- Parameters:
why
- The message for the exception.reason
- The original exception that caused the problem
-
SnmpBadConversionException
public SnmpBadConversionException()
The exception constructor
-
SnmpBadConversionException
public SnmpBadConversionException(Exception reason)
Constructs a new exception which is based upon a previous exception. The two exceptions are chained together internally.- Parameters:
reason
- The original exception
-
-
Method Detail
-
printStackTrace
public void printStackTrace()
Prints the stack trace of the exception. If the exception has been chained then the original exception is also printed to the stream.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace(PrintWriter writer)
Prints the stack trace of the exception. If the exception has been chained then the original exception is also printed to the stream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
writer
- The stream to writer the stack trace onto.
-
printStackTrace
public void printStackTrace(PrintStream stream)
Prints the stack trace of the exception. If the exception has been chained then the original exception is also printed to the stream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
stream
- The stream to writer the stack trace onto.
-
-