Source code for cli.exceptions

"""A container for all shell-related exceptions"""


[docs]class ShellException(Exception): """A base class for all shell exceptions""" pass
[docs]class ParseException(ShellException): """An exception that occurs during parsing""" pass
[docs]class LexException(ShellException): """An exception that occurs during lexing""" pass
[docs]class ExitException(ShellException): """This exception is raised when `exit` command is executed""" pass