Class AnnotationConfigurationException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.core.annotation.AnnotationConfigurationException
- All Implemented Interfaces:
Serializable
public class AnnotationConfigurationException extends NestedRuntimeException
Thrown byAnnotationUtils
and synthesized annotations if an annotation is improperly configured.- Since:
- 4.2
- Author:
- Sam Brannen
- See Also:
AnnotationUtils
,SynthesizedAnnotation
, Serialized Form
Constructor Summary
Constructors Constructor Description AnnotationConfigurationException(String message)
Construct a newAnnotationConfigurationException
with the supplied message.AnnotationConfigurationException(String message, Throwable cause)
Construct a newAnnotationConfigurationException
with the supplied message and cause.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
AnnotationConfigurationException
public AnnotationConfigurationException(String message)
Construct a newAnnotationConfigurationException
with the supplied message.- Parameters:
message
- the detail message
AnnotationConfigurationException
public AnnotationConfigurationException(String message, Throwable cause)
Construct a newAnnotationConfigurationException
with the supplied message and cause.- Parameters:
message
- the detail messagecause
- the root cause