Source code for tyrian.exceptions
class TyrianException(Exception):
"""
[docs] Base exception to allow for easy catching of all exceptions raised by
tyrian
"""
pass
class TyrianSyntaxError(TyrianException):
"""
[docs] Raised when a syntax is found
"""
pass
class InvalidToken(TyrianException):
"""
[docs] Raised when an invalid token is found
"""
pass
class GrammarDefinitionError(TyrianException):
"""
[docs] Raised when the grammar definition file is found to have an error
"""
pass
class NoSuchGrammar(TyrianException):
"""
[docs] Raised when a reference grammar does not exist
"""
pass