got distracted and made a repl framework.......
This commit is contained in:
parent
0a2d9a5694
commit
c18aa29c58
5 changed files with 227 additions and 17 deletions
|
|
@ -1,2 +1,22 @@
|
|||
'''
|
||||
========================================================
|
||||
Exceptions for CLI / REPL Commands and Param/Opt Objects
|
||||
========================================================
|
||||
'''
|
||||
class BadOptNameError(Exception):
|
||||
__MSG = 'Opt.__init__() requires non-empty kwarg `name: str = ...`'
|
||||
def __init__(self) -> None:
|
||||
super().__init__(BadOptNameError.__MSG)
|
||||
|
||||
class InvalidOptError(Exception):
|
||||
__MSG = 'Opt.__init__() requires at least 1 short/longform'
|
||||
def __init__(self) -> None:
|
||||
super().__init__(InvalidOptError.__MSG)
|
||||
|
||||
class DisjointOverlapError(Exception):
|
||||
__MSG = 'Overlap.__add__() requires shared master, got disjoint'
|
||||
def __init__(self) -> None:
|
||||
super().__init__(DisjointOverlapError.__MSG)
|
||||
|
||||
class CmdDeclarationError(Exception):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue