public class io.dropwizard.views.ViewRenderExceptionMapper implements org.glassfish.jersey.spi.ExtendedExceptionMapper<javax.ws.rs.WebApplicationException>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.views.ViewRenderExceptionMapper
super_class: java.lang.Object
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String TEMPLATE_ERROR_MSG;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "<html><head><title>Template Error</title></head><body><h1>Template Error</h1><p>Something went wrong rendering the page</p></body></html>"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/views/ViewRenderExceptionMapper;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.views.ViewRenderExceptionMapper.LOGGER:Lorg/slf4j/Logger;
1: 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/views/ViewRenderExceptionMapper;
public javax.ws.rs.core.Response toResponse(javax.ws.rs.WebApplicationException);
descriptor: (Ljavax/ws/rs/WebApplicationException;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.views.ViewRenderExceptionMapper.LOGGER:Lorg/slf4j/Logger;
ldc "Template Error"
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
1: invokestatic javax.ws.rs.core.Response.serverError:()Ljavax/ws/rs/core/Response$ResponseBuilder;
2: getstatic javax.ws.rs.core.MediaType.TEXT_HTML_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;
3: ldc "<html><head><title>Template Error</title></head><body><h1>Template Error</h1><p>Something went wrong rendering the page</p></body></html>"
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
4: invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/dropwizard/views/ViewRenderExceptionMapper;
0 6 1 exception Ljavax/ws/rs/WebApplicationException;
MethodParameters:
Name Flags
exception
public boolean isMappable(javax.ws.rs.WebApplicationException);
descriptor: (Ljavax/ws/rs/WebApplicationException;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc Lio/dropwizard/views/ViewRenderException;
invokestatic org.apache.commons.lang3.exception.ExceptionUtils.indexOfThrowable:(Ljava/lang/Throwable;Ljava/lang/Class;)I
iconst_m1
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/views/ViewRenderExceptionMapper;
0 2 1 e Ljavax/ws/rs/WebApplicationException;
MethodParameters:
Name Flags
e
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 javax.ws.rs.WebApplicationException
invokevirtual io.dropwizard.views.ViewRenderExceptionMapper.toResponse:(Ljavax/ws/rs/WebApplicationException;)Ljavax/ws/rs/core/Response;
areturn
LocalVariableTable:
Start End Slot Name Signature
public boolean isMappable(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast javax.ws.rs.WebApplicationException
invokevirtual io.dropwizard.views.ViewRenderExceptionMapper.isMappable:(Ljavax/ws/rs/WebApplicationException;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/glassfish/jersey/spi/ExtendedExceptionMapper<Ljavax/ws/rs/WebApplicationException;>;
SourceFile: "ViewRenderExceptionMapper.java"
InnerClasses:
public abstract ResponseBuilder = javax.ws.rs.core.Response$ResponseBuilder of javax.ws.rs.core.Response
RuntimeVisibleAnnotations:
javax.ws.rs.ext.Provider()