Options: Add an OptionError to specify bad options caused the failure (#2343)

* Options: Add an OptionError to specify bad options caused the failure

* inherit from ValueError instead of RuntimeError since this error should be thrown via bad input

---------

Co-authored-by: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com>
This commit is contained in:
Aaron Wagener
2024-05-02 02:22:50 -05:00
committed by GitHub
parent 0ed0de3daa
commit 6f8b8fc9c9
2 changed files with 6 additions and 2 deletions

View File

@@ -21,6 +21,10 @@ if typing.TYPE_CHECKING:
import pathlib
class OptionError(ValueError):
pass
class Visibility(enum.IntFlag):
none = 0b0000
template = 0b0001