Package org.opennms.netmgt.filter.api
Class FilterParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.opennms.netmgt.filter.api.FilterParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class FilterParseException extends java.lang.RuntimeException
This class is used to indicate a failure of the Filter engine to correctly parse a filter expression. If the error was caused by an undeclared exception during processing, that exception is also encapsulated by the exception.- Author:
- Jason , Weave
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilterParseException()
Constructs a new, empty filter parser exception.FilterParseException(java.lang.String msg)
Constructs a new parse exception with the passed message as its error text.FilterParseException(java.lang.String msg, java.lang.Throwable t)
Constructs a new parse exception with the passed message as the error text and the throwable as the encapsulated error causing the failure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printStackTrace()
Prints the stack trace of the exception, and the encapsulated exception if any.void
printStackTrace(java.io.PrintStream ps)
Prints the stack trace of the exception, and the encapsulated exception if any.void
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of the exception, and the encapsulated exception if any.
-
-
-
Constructor Detail
-
FilterParseException
public FilterParseException()
Constructs a new, empty filter parser exception.
-
FilterParseException
public FilterParseException(java.lang.String msg)
Constructs a new parse exception with the passed message as its error text.- Parameters:
msg
- The exception text.
-
FilterParseException
public FilterParseException(java.lang.String msg, java.lang.Throwable t)
Constructs a new parse exception with the passed message as the error text and the throwable as the encapsulated error causing the failure.- Parameters:
msg
- The exception text.t
- The cause of the failure.
-
-
Method Detail
-
printStackTrace
public void printStackTrace()
Prints the stack trace of the exception, and the encapsulated exception if any.- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
Prints the stack trace of the exception, and the encapsulated exception if any.- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of the exception, and the encapsulated exception if any.- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
pw
- The location to write the exception.
-
-