Qizx/open API

net.axyana.qizxopen.xquery
Class EmptyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.axyana.qizxopen.xquery.XQueryException
              extended bynet.axyana.qizxopen.xquery.XQEvalException
                  extended bynet.axyana.qizxopen.xquery.EmptyException
All Implemented Interfaces:
java.io.Serializable

public class EmptyException
extends XQEvalException

[Internal use] Thrown when a empty Value is encountered in a context that cannot handle it. Can be caught be enclosing expressions that accept empty sequences.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class net.axyana.qizxopen.xquery.XQEvalException
XQEvalException.StackFrame
 
Field Summary
static EmptyException instance
          Unique instance.
 
Constructor Summary
EmptyException(java.lang.String reason)
           
 
Method Summary
static EmptyException allowed()
          Unique instance.
 
Methods inherited from class net.axyana.qizxopen.xquery.XQEvalException
getContext, getStack, printStack, setContext
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

public static EmptyException instance
Unique instance.

Constructor Detail

EmptyException

public EmptyException(java.lang.String reason)
Method Detail

allowed

public static EmptyException allowed()
Unique instance.

Throwing a statically built exception is perfectly possible in Java. This saves the time needed to copy the call stack into the exception, at the cost of a meaningless printStackTrace(). But we dont care here, because this is meant to simplify the handling of optionally empty arguments.


© 2005 Axyana Software