Package org.onosproject.net.config
Class InvalidConfigException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.onosproject.net.config.InvalidConfigException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidConfigException extends java.lang.RuntimeException
Indicates an invalid configuration was supplied by the user.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidConfigException(java.lang.String subjectKey, java.lang.String subject, java.lang.String configKey)
Creates a new invalid config exception about a specific config.InvalidConfigException(java.lang.String subjectKey, java.lang.String subject, java.lang.String configKey, java.lang.Throwable cause)
Creates a new invalid config exception about a specific config with an exception regarding the cause of the invalidity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
configKey()
Returns the config key of the config.java.lang.String
subject()
Returns the string representation of the subject of the config.java.lang.String
subjectKey()
Returns the subject key of the config.
-
-
-
Constructor Detail
-
InvalidConfigException
public InvalidConfigException(java.lang.String subjectKey, java.lang.String subject, java.lang.String configKey)
Creates a new invalid config exception about a specific config.- Parameters:
subjectKey
- config's subject keysubject
- config's subjectconfigKey
- config's config key
-
InvalidConfigException
public InvalidConfigException(java.lang.String subjectKey, java.lang.String subject, java.lang.String configKey, java.lang.Throwable cause)
Creates a new invalid config exception about a specific config with an exception regarding the cause of the invalidity.- Parameters:
subjectKey
- config's subject keysubject
- config's subjectconfigKey
- config's config keycause
- cause of the invalidity
-
-
Method Detail
-
subjectKey
public java.lang.String subjectKey()
Returns the subject key of the config.- Returns:
- subject key
-
subject
public java.lang.String subject()
Returns the string representation of the subject of the config.- Returns:
- subject
-
configKey
public java.lang.String configKey()
Returns the config key of the config.- Returns:
- config key
-
-