public class io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper extends io.dropwizard.jersey.errors.LoggingExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper
super_class: io.dropwizard.jersey.errors.LoggingExceptionMapper
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final boolean showDetails;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/jersey/jackson/JsonProcessingExceptionMapper;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokespecial io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/jersey/jackson/JsonProcessingExceptionMapper;
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.dropwizard.jersey.errors.LoggingExceptionMapper.<init>:()V
1: aload 0
iload 1
putfield io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper.showDetails:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/jersey/jackson/JsonProcessingExceptionMapper;
0 3 1 showDetails Z
MethodParameters:
Name Flags
showDetails
public boolean isShowDetails();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper.showDetails:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/jackson/JsonProcessingExceptionMapper;
public javax.ws.rs.core.Response toResponse(com.fasterxml.jackson.core.JsonProcessingException);
descriptor: (Lcom/fasterxml/jackson/core/JsonProcessingException;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.fasterxml.jackson.core.JsonGenerationException
ifne 1
aload 1
instanceof com.fasterxml.jackson.databind.exc.InvalidDefinitionException
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial io.dropwizard.jersey.errors.LoggingExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
areturn
2: StackMap locals:
StackMap stack:
getstatic io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper.LOGGER:Lorg/slf4j/Logger;
ldc "Unable to process JSON"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Throwable;)V
3: aload 1
invokevirtual com.fasterxml.jackson.core.JsonProcessingException.getOriginalMessage:()Ljava/lang/String;
astore 2
start local 2 4: new io.dropwizard.jersey.errors.ErrorMessage
dup
getstatic javax.ws.rs.core.Response$Status.BAD_REQUEST:Ljavax/ws/rs/core/Response$Status;
invokevirtual javax.ws.rs.core.Response$Status.getStatusCode:()I
5: ldc "Unable to process JSON"
aload 0
getfield io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper.showDetails:Z
ifeq 6
aload 2
goto 7
StackMap locals: io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper com.fasterxml.jackson.core.JsonProcessingException java.lang.String
StackMap stack: new 4 new 4 int java.lang.String
6: aconst_null
7: StackMap locals: io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper com.fasterxml.jackson.core.JsonProcessingException java.lang.String
StackMap stack: new 4 new 4 int java.lang.String java.lang.String
invokespecial io.dropwizard.jersey.errors.ErrorMessage.<init>:(ILjava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 8: getstatic javax.ws.rs.core.Response$Status.BAD_REQUEST:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.core.Response.status:(Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response$ResponseBuilder;
9: 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;
10: aload 3
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
11: invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
12: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/dropwizard/jersey/jackson/JsonProcessingExceptionMapper;
0 13 1 exception Lcom/fasterxml/jackson/core/JsonProcessingException;
4 13 2 message Ljava/lang/String;
8 13 3 errorMessage Lio/dropwizard/jersey/errors/ErrorMessage;
MethodParameters:
Name Flags
exception
public javax.ws.rs.core.Response toResponse(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast com.fasterxml.jackson.core.JsonProcessingException
invokevirtual io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper.toResponse:(Lcom/fasterxml/jackson/core/JsonProcessingException;)Ljavax/ws/rs/core/Response;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lio/dropwizard/jersey/errors/LoggingExceptionMapper<Lcom/fasterxml/jackson/core/JsonProcessingException;>;
SourceFile: "JsonProcessingExceptionMapper.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
RuntimeVisibleAnnotations:
javax.ws.rs.ext.Provider()