com.sun.xml.bind.v2.runtime
Class IllegalAnnotationsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.bind.JAXBException
              extended by com.sun.xml.bind.v2.runtime.IllegalAnnotationsException
All Implemented Interfaces:
java.io.Serializable

public class IllegalAnnotationsException
extends javax.xml.bind.JAXBException

A list of IllegalAnnotationException 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
See Also:
Serialized Form

Nested Class Summary
static class IllegalAnnotationsException.Builder
           
 
Constructor Summary
IllegalAnnotationsException(java.util.List<IllegalAnnotationException> errors)
           
 
Method Summary
 java.util.List<IllegalAnnotationException> getErrors()
          Returns a read-only list of IllegalAnnotationExceptions wrapped in this exception.
 java.lang.String toString()
           
 
Methods inherited from class javax.xml.bind.JAXBException
getCause, getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalAnnotationsException

public IllegalAnnotationsException(java.util.List<IllegalAnnotationException> errors)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class javax.xml.bind.JAXBException

getErrors

public java.util.List<IllegalAnnotationException> getErrors()
Returns a read-only list of IllegalAnnotationExceptions wrapped in this exception.

Returns:
a non-null list.