Class YangInvalidValueException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.opendaylight.yangtools.yang.data.api.codec.YangInvalidValueException
All Implemented Interfaces:
Serializable, YangNetconfErrorAware

@Beta public class YangInvalidValueException extends IllegalArgumentException implements YangNetconfErrorAware
Dedicated exception for reporting conditions where error-tag should be reported as invalid-value. This is covered by RFC7950 section 8.3.1:
   If a leaf data value does not match the type constraints for the
   leaf, including those defined in the type's "range", "length", and
   "pattern" properties, the server MUST reply with an
   "invalid-value" <error-tag> in the <rpc-error>, and with the
   error-app-tag (Section 7.5.4.2) and error-message
   (Section 7.5.4.1) associated with the constraint, if any exist.
 

This error tag also references RFC6241 Appendix A, which defines the appropriate severity and adds more semantics.

See Also: