Class WrappingException

  • All Implemented Interfaces:
    de.aristaflow.adept2.model.communication.webservice.ReplacingException, de.aristaflow.adept2.model.communication.webservice.StackSuppressingException, Serializable

    public class WrappingException
    extends IlmException
    implements de.aristaflow.adept2.model.communication.webservice.ReplacingException
    This class is a generic exception that wraps arbitrary exceptions which are not represented as subclasses of IlmException. It stores the class name of the wrapped exception so that the type information will be kept.
    See Also:
    Serialized Form
    • Field Detail

      • replacedExceptionClassName

        @NotEmpty
        public @NotEmpty String replacedExceptionClassName
        The class name of the wrapped exception.
    • Constructor Detail

      • WrappingException

        public WrappingException()
        The constructor required for bean deserialisation.
      • WrappingException

        public WrappingException​(Throwable wrapped)
        Creates a new exception wrapping the designated throwable and its cause. Additionally, the class name of the class of the designated wrapped exception will be stored.
        Parameters:
        wrapped - The throwable which to wrap by the created exception.
    • Method Detail

      • getReplacedExceptionClassName

        public String getReplacedExceptionClassName()
        Specified by:
        getReplacedExceptionClassName in interface de.aristaflow.adept2.model.communication.webservice.ReplacingException