summaryrefslogtreecommitdiff
path: root/cmd2/exceptions.py
blob: 747e2368d7e23f878227f07f348d98ce29f32d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# coding=utf-8
"""Custom exceptions for cmd2.  These are NOT part of the public API and are intended for internal use only."""


class EmbeddedConsoleExit(SystemExit):
    """Custom exception class for use with the py command."""
    pass


class EmptyStatement(Exception):
    """Custom exception class for handling behavior when the user just presses <Enter>."""
    pass