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 <[email protected]>
This commit is contained in:
Aaron Wagener
2024-05-02 09:22:50 +02:00
committed by GitHub
co-authored by NewSoupVi
parent 0ed0de3daa
commit 6f8b8fc9c9
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -21,6 +21,10 @@ if typing.TYPE_CHECKING:
import pathlib
class OptionError(ValueError):
pass
class Visibility(enum.IntFlag):
none = 0b0000
template = 0b0001