Class UncheckedJAXBException

All Implemented Interfaces:
Serializable

public class UncheckedJAXBException extends RuntimeException
Wraps a JAXBException with an unchecked exception.
See Also:
  • Constructor Details

    • UncheckedJAXBException

      public UncheckedJAXBException(String message, jakarta.xml.bind.JAXBException cause)
      Construct an instance.
      Parameters:
      message - the message, which can be null
      cause - the cause, which cannot be null
      Throws:
      IllegalArgumentException - if cause is null
    • UncheckedJAXBException

      public UncheckedJAXBException(jakarta.xml.bind.JAXBException cause)
      Construct an instance.
      Parameters:
      cause - the cause, which cannot be null
      Throws:
      IllegalArgumentException - if cause is null
  • Method Details

    • getCause

      public jakarta.xml.bind.JAXBException getCause()
      Returns the cause of this exception.
      Overrides:
      getCause in class Throwable
      Returns:
      the JAXBException which is the cause of this exception