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:
Serializable
public class InvalidConfigException extends RuntimeException
Indicates an invalid configuration was supplied by the user.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidConfigException(String subjectKey, String subject, String configKey)
Creates a new invalid config exception about a specific config.InvalidConfigException(String subjectKey, String subject, String configKey, 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 String
configKey()
Returns the config key of the config.String
subject()
Returns the string representation of the subject of the config.String
subjectKey()
Returns the subject key of the config.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidConfigException
public InvalidConfigException(String subjectKey, String subject, 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(String subjectKey, String subject, String configKey, 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 String subjectKey()
Returns the subject key of the config.- Returns:
- subject key
-
subject
public String subject()
Returns the string representation of the subject of the config.- Returns:
- subject
-
configKey
public String configKey()
Returns the config key of the config.- Returns:
- config key
-
-