Top Description Inners Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime

public Class IllegalAnnotationsException

extends JAXBException
Class Inheritance
Imports
org.glassfish.jaxb.core.v2.model.core.ErrorHandler, org.glassfish.jaxb.core.v2.runtime.IllegalAnnotationException, jakarta.xml.bind.JAXBContext, .JAXBException, java.util.ArrayList, .Collections, .List

A list of IllegalAnnotationException wrapped in one exception.

This exception is used to report all the errors to the client application through JAXBContext#newInstance.

Author
Kohsuke Kawaguchi
Since
JAXB 2.0 EA1

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final transient List<IllegalAnnotationException>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
public List<IllegalAnnotationException>

Returns:

a non-null list.
getErrors
()

Returns a read-only list of IllegalAnnotationExceptions wrapped in this exception.

Inherited from jakarta.xml.bind.JAXBException:
getCausegetErrorCodegetLinkedExceptionprintStackTraceprintStackTraceprintStackTracesetLinkedExceptiontoString

Field Detail

errorsback to summary
private final transient List<IllegalAnnotationException> errors
serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.xml.bind.JAXBException.serialVersionUID.

Constructor Detail

IllegalAnnotationsExceptionback to summary
public IllegalAnnotationsException(List<IllegalAnnotationException> errors)

Method Detail

buildMessageback to summary
private static String buildMessage(List<IllegalAnnotationException> errors)
getErrorsback to summary
public List<IllegalAnnotationException> getErrors()

Returns a read-only list of IllegalAnnotationExceptions wrapped in this exception.

Returns:List<IllegalAnnotationException>

a non-null list.

org.glassfish.jaxb.runtime.v2.runtime back to summary

public Class IllegalAnnotationsException.Builder

extends Object
implements ErrorHandler
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException.Builder
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.core.ErrorHandler

Field Summary

Modifier and TypeField and Description
private final List<IllegalAnnotationException>

Constructor Summary

AccessConstructor and Description
public
Builder()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
check()

If an error was reported, throw the exception.

public void
error(IllegalAnnotationException e)

Implements org.glassfish.jaxb.core.v2.model.core.ErrorHandler.error.

Receives a notification for an error in the annotated code.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listback to summary
private final List<IllegalAnnotationException> list

Constructor Detail

Builderback to summary
public Builder()

Default constructor.

Method Detail

checkback to summary
public void check() throws IllegalAnnotationsException

If an error was reported, throw the exception. Otherwise exit normally.

errorback to summary
public void error(IllegalAnnotationException e)

Implements org.glassfish.jaxb.core.v2.model.core.ErrorHandler.error.

Doc from org.glassfish.jaxb.core.v2.model.core.ErrorHandler.error.

Receives a notification for an error in the annotated code.

Annotations
@Override