edu.neu.ccs.filter
Class FilterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byedu.neu.ccs.filter.FilterException
All Implemented Interfaces:
Serializable

public class FilterException
extends Exception

Exception to be thrown by a filter when the object to be filtered does not meet the criteria for the filter.

Since:
1.0
Version:
2.2
See Also:
Serialized Form

Field Summary
protected  Stringable obj
          The Stringable object that failed the filtering process, with its state set to the value that was current at the time the exception was thrown.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
FilterException(Stringable model)
          Constructs a filter exception with the given model and no detail messsage.
FilterException(Stringable model, String message)
          Constructs a filter exception with the given model and detail messsage.
 
Method Summary
 Stringable getModel()
          Returns the model object that failed the filtering process with its state set to the value that was current at the time the exception was thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

obj

protected Stringable obj
The Stringable object that failed the filtering process, with its state set to the value that was current at the time the exception was thrown.

Constructor Detail

FilterException

public FilterException(Stringable model)
Constructs a filter exception with the given model and no detail messsage.

Parameters:
model - the data model that failed the filter process
See Also:
FilterException(Stringable, String)

FilterException

public FilterException(Stringable model,
                       String message)
Constructs a filter exception with the given model and detail messsage.

Parameters:
model - the data model that failed the filter process
message - the error message for this exception
See Also:
FilterException(Stringable)
Method Detail

getModel

public Stringable getModel()
Returns the model object that failed the filtering process with its state set to the value that was current at the time the exception was thrown.