Module com.sun.xml.bind
Class IllegalAnnotationsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- jakarta.xml.bind.JAXBException
-
- org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException
-
- All Implemented Interfaces:
Serializable
public class IllegalAnnotationsException extends jakarta.xml.bind.JAXBExceptionA list ofIllegalAnnotationExceptionwrapped in one exception.This exception is used to report all the errors to the client application through
JAXBContext.newInstance(java.lang.String).- Since:
- JAXB 2.0 EA1
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIllegalAnnotationsException.Builder
-
Constructor Summary
Constructors Constructor Description IllegalAnnotationsException(List<IllegalAnnotationException> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IllegalAnnotationException>getErrors()Returns a read-only list ofIllegalAnnotationExceptions wrapped in this exception.StringtoString()-
Methods inherited from class jakarta.xml.bind.JAXBException
getCause, getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
-
-
-
Constructor Detail
-
IllegalAnnotationsException
public IllegalAnnotationsException(List<IllegalAnnotationException> errors)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classjakarta.xml.bind.JAXBException
-
getErrors
public List<IllegalAnnotationException> getErrors()
Returns a read-only list ofIllegalAnnotationExceptions wrapped in this exception.- Returns:
- a non-null list.
-
-