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:
java.io.Serializable
public class InvalidFieldException extends java.lang.RuntimeException
Indicates a field of a configuration was invalid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidFieldException(java.lang.String field, java.lang.String reason)
Creates a new invalid field exception about a given field.InvalidFieldException(java.lang.String field, java.lang.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 java.lang.String
field()
Returns the field name.java.lang.String
reason()
Returns the reason the field failed to validate.
-
-
-
Constructor Detail
-
InvalidFieldException
public InvalidFieldException(java.lang.String field, java.lang.String reason)
Creates a new invalid field exception about a given field.- Parameters:
field
- field namereason
- reason the field is invalid
-
InvalidFieldException
public InvalidFieldException(java.lang.String field, java.lang.Throwable cause)
Creates a new invalid field exception about a given field.- Parameters:
field
- field namecause
- throwable that occurred while trying to validate field
-
-