Package org.jboss.logging.annotations
Annotation Type TransformException
-
@Retention(CLASS) @Target(PARAMETER) @Documented public @interface TransformException
Transforms the parameter into a new exception appending the message from the parameter to the message from the method. This annotation is only allowed on parameters that are a super type of the return type.Note that the message must include a
%s
for the message from the parameter.{@code @Message("Binding to %s failed: %s") IOException bindFailed(SocketAddress address,
- Author:
- James R. Perkins
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
copyStackTrace
Indicates if the stack trace from the parameter should be copied to the exception returned.Class<? extends Throwable>[]
value
An array of suggested types to create.
-
-
-
Element Detail
-
copyStackTrace
boolean copyStackTrace
Indicates if the stack trace from the parameter should be copied to the exception returned.If
true
, the default, the parameters stack trace will be set as the stack trace on the newly created exception that is returned.- Returns:
true
if the stack trace should be copied to the newly created exception
- Default:
- true
-
-