-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check was_unfrozen; separate errors module; import resolve
- Loading branch information
Vladimir Mikhaylov
committed
Sep 18, 2020
1 parent
e74a36e
commit cb885d4
Showing
15 changed files
with
254 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .config import * | ||
from .errors import * | ||
|
||
__version__ = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
class ConfigError(Exception): | ||
pass | ||
|
||
|
||
class TypeMismatch(ConfigError): | ||
pass | ||
|
||
|
||
class NodeReassignment(ConfigError): | ||
pass | ||
|
||
|
||
class ModuleError(ConfigError): | ||
pass | ||
|
||
|
||
class SchemaError(ConfigError): | ||
pass | ||
|
||
|
||
class SchemaFrozenError(SchemaError): | ||
pass | ||
|
||
|
||
class ValidationError(ConfigError): | ||
pass | ||
|
||
|
||
class SpecError(ConfigError): | ||
pass | ||
|
||
|
||
class NodeFrozenError(ConfigError): | ||
pass | ||
|
||
|
||
class SaveError(ConfigError): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from .base_cfg import cfg | ||
from ntc import CN | ||
|
||
from .base_cfg import cfg | ||
|
||
cfg = CN(cfg) | ||
cfg.NAME = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .base_cfg import cfg | ||
from ntc import CN | ||
|
||
from .base_cfg import cfg | ||
|
||
cfg = CN(cfg) | ||
|
||
cfg.NAME = "bad_attr" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .good import cfg | ||
from ntc import CN | ||
|
||
from .good import cfg | ||
|
||
|
||
class BadClass: | ||
pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .base_cfg import cfg | ||
from ntc import CN | ||
|
||
from .base_cfg import cfg | ||
|
||
|
||
class BadClass: | ||
pass | ||
|
Oops, something went wrong.