Fido Alpha 3.2

Class BooleanSyntaxException

All Implemented Interfaces:

public class BooleanSyntaxException
extends FidoException

Thrown when an error occurs while constructing or using a BooleanTree. If that was too vague :), it can happen when

  1. When adding a leaf node to the tree, if the tree is not empty and the last node added was not a subclass of BooleanNode.
  2. When adding a subclass of BooleanNode as the first node of a tree. The first node must be a leaf node, then add a subclass of BooleanNode, and the leaf node will become its Left branch.
  3. An attempt to close a group (end a parenthesis), when none where opened.
  4. When the tree is complete, if there was an open parenthesis which was not closed.
  5. When the tree is complete, if there was a subclass of BooleanNode ending the tree. This means there is no Right branch on the last BooleanNode.

See Also:
Serialized Form

Constructor Summary
BooleanSyntaxException(java.lang.String s)
          Constructs a BooleanSyntaxException with a specified detail message.
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

Constructor Detail


public BooleanSyntaxException(java.lang.String s)
Constructs a BooleanSyntaxException with a specified detail message.

s - the detail message

Fido Alpha 3.2