curly.exceptions
¶
This module has a number of exceptions raises by Curly.
Please remember that all exceptions are derived from
CurlyError
which is a subclass of ValueError
.
-
exception
curly.exceptions.
CurlyError
(message, *args, **kwargs)[source]¶ Bases:
ValueError
Main exception raised from Curly.
-
exception
curly.exceptions.
CurlyEvaluateError
(message, *args, **kwargs)[source]¶ Bases:
curly.exceptions.CurlyError
Expression evaluation error.
-
exception
curly.exceptions.
CurlyEvaluateNoKeyError
(context, key)[source]¶ Bases:
curly.exceptions.CurlyEvaluateError
Exception raised if context has no required key.
-
exception
curly.exceptions.
CurlyLexerError
(message, *args, **kwargs)[source]¶ Bases:
curly.exceptions.CurlyError
Errors on lexing phase.
-
exception
curly.exceptions.
CurlyLexerStringDoesNotMatchError
(text, pattern)[source]¶ Bases:
curly.exceptions.CurlyLexerError
Exception raised if given string does not match regular expression.
-
exception
curly.exceptions.
CurlyParserError
(message, *args, **kwargs)[source]¶ Bases:
curly.exceptions.CurlyError
Errors on parsing phase.
-
exception
curly.exceptions.
CurlyParserFoundNotDoneError
(node)[source]¶ Bases:
curly.exceptions.CurlyParserError
Exception raised if some node is not done.
-
exception
curly.exceptions.
CurlyParserNoUnfinishedNodeError
[source]¶ Bases:
curly.exceptions.CurlyParserError
Exception raised if searching for not finished node is failed.
-
exception
curly.exceptions.
CurlyParserUnexpectedUnfinishedNodeError
(search_for, node)[source]¶ Bases:
curly.exceptions.CurlyParserError
Exception raised if we found unfinished node which is not expected.
-
exception
curly.exceptions.
CurlyParserUnknownEndBlockError
(token)[source]¶ Bases:
curly.exceptions.CurlyParserError
Exception raised if function of end block is unknown.
-
exception
curly.exceptions.
CurlyParserUnknownStartBlockError
(token)[source]¶ Bases:
curly.exceptions.CurlyParserError
Exception raised if function of start block is unknown.
-
exception
curly.exceptions.
CurlyParserUnknownTokenError
(token)[source]¶ Bases:
curly.exceptions.CurlyParserError
Exception raised on unknown token type.