Package io.github.chrimle.sbspi
Class StaticValueInjectorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.chrimle.sbspi.StaticValueInjectorException
- All Implemented Interfaces:
Serializable
Exception thrown by
StaticValueInjector
when processing StaticValue
-annotations.
API Note: This class cannot be instantiated by any constructor. Instead, it can only be instantiated via static factory methods.
- Since:
- 0.1.0
- Author:
- Chrimle
- See Also:
-
classNotFound(String, Throwable)
emptyAnnotationValue(Field, String)
unsupportedAnnotationValue(Field, String)
unparsableAnnotationValue(Field, String, Throwable)
- Serialized Form
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The reason for theStaticValueInjectorException
being thrown. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Returns the annotatedClass
related to this exception being thrown.Returns the annotated field's name, as aString
, related to this exception being thrown.Returns theStaticValue.value()
related to this excepton being thrown.Returns theStaticValueInjectorException.Reason
for this exception being thrown.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getAnnotationValue
Returns theStaticValue.value()
related to this excepton being thrown.- Returns:
- the
StaticValue.value()
. - Since:
- 0.1.0
-
getAnnotatedField
Returns the annotated field's name, as aString
, related to this exception being thrown.- Returns:
- the annotated field.
- Since:
- 0.1.0
-
getAnnotatedClass
Returns the annotatedClass
related to this exception being thrown.- Returns:
- the annotated
Class
. - Since:
- 0.1.0
-
getReason
Returns theStaticValueInjectorException.Reason
for this exception being thrown.- Returns:
- the
StaticValueInjectorException.Reason
of this exception. - Since:
- 0.1.0
-