public abstract class io.dropwizard.jersey.errors.LoggingExceptionMapper<E extends java.lang.Throwable> implements javax.ws.rs.ext.ExceptionMapper<E>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.dropwizard.jersey.errors.LoggingExceptionMapper
super_class: java.lang.Object
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/jersey/errors/LoggingExceptionMapper;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.jersey.errors.LoggingExceptionMapper.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/errors/LoggingExceptionMapper<TE;>;
public javax.ws.rs.core.Response toResponse(E);
descriptor: (Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.ws.rs.WebApplicationException
ifeq 12
1: aload 1
checkcast javax.ws.rs.WebApplicationException
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
astore 2
start local 2 2: aload 2
invokevirtual javax.ws.rs.core.Response.getStatusInfo:()Ljavax/ws/rs/core/Response$StatusType;
invokeinterface javax.ws.rs.core.Response$StatusType.getFamily:()Ljavax/ws/rs/core/Response$Status$Family;
astore 3
start local 3 3: aload 3
getstatic javax.ws.rs.core.Response$Status$Family.REDIRECTION:Ljavax/ws/rs/core/Response$Status$Family;
invokevirtual javax.ws.rs.core.Response$Status$Family.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
areturn
5: StackMap locals: javax.ws.rs.core.Response javax.ws.rs.core.Response$Status$Family
StackMap stack:
aload 3
getstatic javax.ws.rs.core.Response$Status$Family.SERVER_ERROR:Ljavax/ws/rs/core/Response$Status$Family;
invokevirtual javax.ws.rs.core.Response$Status$Family.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 0
aload 1
invokevirtual io.dropwizard.jersey.errors.LoggingExceptionMapper.logException:(Ljava/lang/Throwable;)J
pop2
7: StackMap locals:
StackMap stack:
aload 2
invokestatic javax.ws.rs.core.Response.fromResponse:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response$ResponseBuilder;
8: getstatic javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE:Ljavax/ws/rs/core/MediaType;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.type:(Ljavax/ws/rs/core/MediaType;)Ljavax/ws/rs/core/Response$ResponseBuilder;
9: new io.dropwizard.jersey.errors.ErrorMessage
dup
aload 2
invokevirtual javax.ws.rs.core.Response.getStatus:()I
aload 1
invokevirtual java.lang.Throwable.getLocalizedMessage:()Ljava/lang/String;
invokespecial io.dropwizard.jersey.errors.ErrorMessage.<init>:(ILjava/lang/String;)V
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
10: invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
11: areturn
end local 3 end local 2 12: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.dropwizard.jersey.errors.LoggingExceptionMapper.logException:(Ljava/lang/Throwable;)J
lstore 2
start local 2 13: getstatic javax.ws.rs.core.Response$Status.INTERNAL_SERVER_ERROR:Ljavax/ws/rs/core/Response$Status;
invokevirtual javax.ws.rs.core.Response$Status.getStatusCode:()I
invokestatic javax.ws.rs.core.Response.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
14: getstatic javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE:Ljavax/ws/rs/core/MediaType;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.type:(Ljavax/ws/rs/core/MediaType;)Ljavax/ws/rs/core/Response$ResponseBuilder;
15: new io.dropwizard.jersey.errors.ErrorMessage
dup
aload 0
lload 2
aload 1
invokevirtual io.dropwizard.jersey.errors.LoggingExceptionMapper.formatErrorMessage:(JLjava/lang/Throwable;)Ljava/lang/String;
invokespecial io.dropwizard.jersey.errors.ErrorMessage.<init>:(Ljava/lang/String;)V
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
16: invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
17: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lio/dropwizard/jersey/errors/LoggingExceptionMapper<TE;>;
0 18 1 exception TE;
2 12 2 response Ljavax/ws/rs/core/Response;
3 12 3 family Ljavax/ws/rs/core/Response$Status$Family;
13 18 2 id J
Signature: (TE;)Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
exception
protected java.lang.String formatErrorMessage(long, E);
descriptor: (JLjava/lang/Throwable;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 3 0: ldc "There was an error processing your request. It has been logged (ID %016x)."
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/errors/LoggingExceptionMapper<TE;>;
0 1 1 id J
0 1 3 exception TE;
Signature: (JTE;)Ljava/lang/String;
MethodParameters:
Name Flags
id
exception
protected long logException();
descriptor: (Ljava/lang/Throwable;)J
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic java.util.concurrent.ThreadLocalRandom.current:()Ljava/util/concurrent/ThreadLocalRandom;
invokevirtual java.util.concurrent.ThreadLocalRandom.nextLong:()J
lstore 2
start local 2 1: aload 0
lload 2
aload 1
invokevirtual io.dropwizard.jersey.errors.LoggingExceptionMapper.logException:(JLjava/lang/Throwable;)V
2: lload 2
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/jersey/errors/LoggingExceptionMapper<TE;>;
0 3 1 exception TE;
1 3 2 id J
Signature: (TE;)J
MethodParameters:
Name Flags
exception
protected void logException(long, );
descriptor: (JLjava/lang/Throwable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: getstatic io.dropwizard.jersey.errors.LoggingExceptionMapper.LOGGER:Lorg/slf4j/Logger;
aload 0
lload 1
aload 3
invokevirtual io.dropwizard.jersey.errors.LoggingExceptionMapper.formatLogMessage:(JLjava/lang/Throwable;)Ljava/lang/String;
aload 3
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
1: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/jersey/errors/LoggingExceptionMapper<TE;>;
0 2 1 id J
0 2 3 exception TE;
Signature: (JTE;)V
MethodParameters:
Name Flags
id
exception
protected java.lang.String formatLogMessage(long, java.lang.Throwable);
descriptor: (JLjava/lang/Throwable;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 3 0: ldc "Error handling a request: %016x"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/errors/LoggingExceptionMapper<TE;>;
0 1 1 id J
0 1 3 exception Ljava/lang/Throwable;
MethodParameters:
Name Flags
id
exception
}
Signature: <E:Ljava/lang/Throwable;>Ljava/lang/Object;Ljavax/ws/rs/ext/ExceptionMapper<TE;>;
SourceFile: "LoggingExceptionMapper.java"
InnerClasses:
public abstract ResponseBuilder = javax.ws.rs.core.Response$ResponseBuilder of javax.ws.rs.core.Response
public final Status = javax.ws.rs.core.Response$Status of javax.ws.rs.core.Response
public final Family = javax.ws.rs.core.Response$Status$Family of javax.ws.rs.core.Response$Status
public abstract StatusType = javax.ws.rs.core.Response$StatusType of javax.ws.rs.core.Response
RuntimeVisibleAnnotations:
javax.ws.rs.ext.Provider()