Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.presumo.jms.selector
Class SelectorFalseException  view SelectorFalseException download SelectorFalseException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.presumo.jms.selector.SelectorFalseException
All Implemented Interfaces:
java.io.Serializable

public final class SelectorFalseException
extends java.lang.Exception

JMS defines some conditions that will always render a selector false. One example is trying to add two strings. While the parser can detect errors in literals at parse time, it can not tell what type an identifier is until evaluation time. If an identifier type is incorrectly used JMS says that the selector is invalid. Another example would be referencing an object property from anywhere in the sql expression. The evaluate methods will throw this exception if they encounter a situation like the ones above. This will effectively short-circuit the evaluation. If you call evaluate on the node in the expression tree you must catch this exception. If it occurs you can assume the selector is false. If the selector does not throw an exception you still have to check the return type to see if the evaluation was true or false or unknown. (unknown == false).


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private static SelectorFalseException onlyInstance
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
private SelectorFalseException()
           
 
Method Summary
(package private) static SelectorFalseException getInstance()
           
 
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

onlyInstance

private static SelectorFalseException onlyInstance
Constructor Detail

SelectorFalseException

private SelectorFalseException()
Method Detail

getInstance

static SelectorFalseException getInstance()