org.opennms.bb.common.filter.exceptions
Class FailedParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.opennms.bb.common.filter.exceptions.FailedParseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IPOutOfRangeException

public class FailedParseException
extends Exception

This exception is used to indicate that an expression rule did not pass the parsing step.

Version:
$Revision: 1.3 $
Author:
Jason Johns, OpenNMS
See Also:
Serialized Form

Field Summary
private  String detail
          This holds the exception message
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
FailedParseException(String aMsg)
          Calls the Exception constructor and sets the detail variable.
 
Method Summary
 void addDetail(String moreDetail)
          This method is used to add more detail to the exception message.
 String toString()
          This method overrides the Exception.toString() to print out the detail string.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

detail

private String detail
This holds the exception message
Constructor Detail

FailedParseException

public FailedParseException(String aMsg)
Calls the Exception constructor and sets the detail variable.
Parameters:
String - detail, information of the exception being thrown
Method Detail

addDetail

public void addDetail(String moreDetail)
This method is used to add more detail to the exception message. This enables the client code to add information to an exception as it is caught in various code blocks.
Parameters:
String - moreDetail, extra information for message

toString

public String toString()
This method overrides the Exception.toString() to print out the detail string.
Overrides:
toString in class Throwable
Returns:
String, the detail information.