Package org.onosproject.net.config
Class InvalidFieldException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.onosproject.net.config.InvalidFieldException
-
- All Implemented Interfaces:
Serializable
public class InvalidFieldException extends RuntimeException
Indicates a field of a configuration was invalid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidFieldException(String field, String reason)
Creates a new invalid field exception about a given field.InvalidFieldException(String field, Throwable cause)
Creates a new invalid field exception about a given field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
field()
Returns the field name.String
reason()
Returns the reason the field failed to validate.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-