Package com.sun.xml.bind.v2.runtime
Class IllegalAnnotationsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.xml.bind.JAXBException
-
- com.sun.xml.bind.v2.runtime.IllegalAnnotationsException
-
- All Implemented Interfaces:
Serializable
public class IllegalAnnotationsException extends JAXBException
A list ofIllegalAnnotationException
wrapped 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 class
IllegalAnnotationsException.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 ofIllegalAnnotationException
s wrapped in this exception.String
toString()
-
Methods inherited from class javax.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:
toString
in classJAXBException
-
getErrors
public List<IllegalAnnotationException> getErrors()
Returns a read-only list ofIllegalAnnotationException
s wrapped in this exception.- Returns:
- a non-null list.
-
-