-
Improvement
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: All
Platform: All
Our current codecs throw a generic IllegalArgumentException when data passes parsing but fails validation (such as pattern, length or range constraints). This results in loss of information in schema, as these constraints can carry additional information.
Introduce a specialized subclass of IllegalArgumentException which will contain:
- string value being parsed
- ConstraintMetaDefinition which was violated
Once defined, make all codec instances throw this exception instead of IAE when validation fails.
- is blocked by
-
YANGTOOLS-176 Introduce YANGException & YANGError interface
- Resolved
- mentioned in
-
Page Loading...