booleano.exc – Exceptions raised by Booleano

Exceptions raised by booleano.

exception booleano.exc.BadCallError

Bases: booleano.exc.InvalidOperationError

Exception raised when a function is called with wrong parameters.

exception booleano.exc.BadExpressionError

Bases: booleano.exc.ParsingException

Exception raised when a expression is not a valid boolean expression.

exception booleano.exc.BadFunctionError

Bases: booleano.exc.BadOperandError

Exception raised when a function is defined incorrectly.

Because it’s aimed at developers, its message doesn’t have to be translatable.

exception booleano.exc.BadOperandError

Bases: booleano.exc.BooleanoException

Exception raised when an operand is defined incorrectly.

Because it’s aimed at developers, its message doesn’t have to be translatable.

exception booleano.exc.BooleanoException

Bases: exceptions.Exception

Base class for the exceptions.

It is never raised directly, but you can use it to handle any kind of exception raised by Booleano.

exception booleano.exc.ConversionError

Bases: booleano.exc.BooleanoException

Exception raised when trying to convert a parse tree, but an invalid node was passed.

exception booleano.exc.GrammarError

Bases: booleano.exc.ParsingException

Exception raised when a grammar is defined incorrectly, or an attempt is made to use it incorrectly.

exception booleano.exc.InvalidOperationError

Bases: booleano.exc.BooleanoException

Exception raised when trying to apply an operation on an operand that doesn’t support it.

This exception must only be used for static errors in the expressions, not runtime errors.

For example: "word" > 10.

exception booleano.exc.ParsingException

Bases: booleano.exc.BooleanoException

Base class for exceptions raised when parsing goes wrong.

It is never raised directly, but you can use it to handle any kind of exception raised by the parser.

exception booleano.exc.ScopeError

Bases: booleano.exc.ParsingException

Exception raised when a scope-related item is defined incorrectly.

Inheritance diagram

digraph inheritance66474143d3 {
rankdir=LR;
size="8.0, 12.0";
  "BooleanoException" [style="setlinewidth(0.5)",URL="#booleano.exc.BooleanoException",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "ConversionError" [style="setlinewidth(0.5)",URL="#booleano.exc.ConversionError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "BooleanoException" -> "ConversionError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "BadFunctionError" [style="setlinewidth(0.5)",URL="#booleano.exc.BadFunctionError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "BadOperandError" -> "BadFunctionError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "ScopeError" [style="setlinewidth(0.5)",URL="#booleano.exc.ScopeError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "ParsingException" -> "ScopeError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "InvalidOperationError" [style="setlinewidth(0.5)",URL="#booleano.exc.InvalidOperationError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "BooleanoException" -> "InvalidOperationError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "BadCallError" [style="setlinewidth(0.5)",URL="#booleano.exc.BadCallError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "InvalidOperationError" -> "BadCallError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "BadOperandError" [style="setlinewidth(0.5)",URL="#booleano.exc.BadOperandError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "BooleanoException" -> "BadOperandError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "BadExpressionError" [style="setlinewidth(0.5)",URL="#booleano.exc.BadExpressionError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "ParsingException" -> "BadExpressionError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "GrammarError" [style="setlinewidth(0.5)",URL="#booleano.exc.GrammarError",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "ParsingException" -> "GrammarError" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "ParsingException" [style="setlinewidth(0.5)",URL="#booleano.exc.ParsingException",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "BooleanoException" -> "ParsingException" [arrowsize=0.5,style="setlinewidth(0.5)"];
}

Table Of Contents

Previous topic

booleano.operations – Boolean Operation Nodes

Next topic

About Booleano

This Page