Package org.tquadrat.foundation.ap
Class AnnotationProcessingError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.tquadrat.foundation.ap.AnnotationProcessingError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CodeGenerationError
,IllegalAnnotationError
@ClassVersion(sourceVersion="$Id: AnnotationProcessingError.java 1117 2024-03-15 15:13:48Z tquadrat $")
@API(status=STABLE,
since="0.1.0")
public sealed class AnnotationProcessingError
extends Error
permits CodeGenerationError, IllegalAnnotationError
The error that will be thrown when there is a general problem with the
annotation processing.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: AnnotationProcessingError.java 1117 2024-03-15 15:13:48Z tquadrat $
- Since:
- 0.1.0
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.ap.AnnotationProcessingError"
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new error withnull
as its detail message.AnnotationProcessingError
(String message) Constructs a new error with the specified detail message.AnnotationProcessingError
(String message, Throwable cause) Constructs a new error with the specified detail message and cause.Constructs a new error with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AnnotationProcessingError
public AnnotationProcessingError()Constructs a new error withnull
as its detail message. The cause is not initialised, and may subsequently be initialised by a call toThrowable.initCause(java.lang.Throwable)
. -
AnnotationProcessingError
Constructs a new error with the specified detail message. The cause is not initialised, and may subsequently be initialised by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- The detail message. It is saved for later retrieval by theThrowable.getMessage()
method.
-
AnnotationProcessingError
Constructs a new error with the specified detail message and cause.
Note that the detail message associated with
cause
is not automatically incorporated in this error's detail message.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method).cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). Anull
value is permitted, and indicates that the cause is nonexistent or unknown.
-
AnnotationProcessingError
Constructs a new error with the specified cause and a detail message of
(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).This constructor is useful for errors that are little more than wrappers for other instances of
Throwable
.- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). Anull
value is permitted, and indicates that the cause is nonexistent or unknown.
-