Class ThrowableAnnotationInfo


  • public class ThrowableAnnotationInfo
    extends AnnotationInfo
    Descriptor for status annotations.
    • Field Detail

      • serializable

        private final boolean serializable
        Indicates if the Status.getThrowable() should be serialized.
      • status

        private final Status status
        The status parsed from the annotation value.
    • Constructor Detail

      • ThrowableAnnotationInfo

        public ThrowableAnnotationInfo​(java.lang.Class<?> throwableClass,
                                       int annotationValue,
                                       boolean serializable)
        Constructor.
        Parameters:
        throwableClass - The class or interface that hosts the annotated Java method.
        annotationValue - The annotation value containing the HTTP error code.
        serializable - Indicates if the Throwable should be serialized.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Indicates if the current object is equal to the given object.
        Overrides:
        equals in class AnnotationInfo
        Parameters:
        other - The other object.
        Returns:
        True if the current object includes the other.
      • getStatus

        public Status getStatus()
        Returns the status parsed from the annotation value.
        Returns:
        The status parsed from the annotation value.
      • isSerializable

        public boolean isSerializable()
        Returns the serialize indicator parsed from the annotation value.
        Returns:
        the serialize indicator parsed from the annotation value.