public class org.jboss.resteasy.core.ExceptionHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.core.ExceptionHandler
super_class: java.lang.Object
{
protected org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory;
descriptor: Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
flags: (0x0004) ACC_PROTECTED
protected java.util.Set<java.lang.String> unwrappedExceptions;
descriptor: Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Set<Ljava/lang/String;>;
protected boolean mapperExecuted;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
public void <init>(org.jboss.resteasy.spi.ResteasyProviderFactory, java.util.Set<java.lang.String>);
descriptor: (Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/Set;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.jboss.resteasy.core.ExceptionHandler.unwrappedExceptions:Ljava/util/Set;
2: aload 0
aload 1
putfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
3: aload 0
aload 2
putfield org.jboss.resteasy.core.ExceptionHandler.unwrappedExceptions:Ljava/util/Set;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 5 1 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 5 2 unwrappedExceptions Ljava/util/Set<Ljava/lang/String;>;
Signature: (Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
providerFactory final
unwrappedExceptions final
public boolean isMapperExecuted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.mapperExecuted:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
public javax.ws.rs.core.Response executeExactExceptionMapper(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getExceptionMappers:()Ljava/util/Map;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.ws.rs.ext.ExceptionMapper
astore 2
start local 2 1: aload 2
ifnonnull 2
aconst_null
areturn
2: StackMap locals: javax.ws.rs.ext.ExceptionMapper
StackMap stack:
aload 0
iconst_1
putfield org.jboss.resteasy.core.ExceptionHandler.mapperExecuted:Z
3: aload 2
aload 1
invokeinterface javax.ws.rs.ext.ExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 4 1 exception Ljava/lang/Throwable;
1 4 2 mapper Ljavax/ws/rs/ext/ExceptionMapper;
MethodParameters:
Name Flags
exception
public javax.ws.rs.core.Response executeExceptionMapperForClass(java.lang.Throwable, java.lang.Class);
descriptor: (Ljava/lang/Throwable;Ljava/lang/Class;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getExceptionMappers:()Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.ws.rs.ext.ExceptionMapper
astore 3
start local 3 1: aload 3
ifnonnull 2
aconst_null
areturn
2: StackMap locals: javax.ws.rs.ext.ExceptionMapper
StackMap stack:
aload 0
iconst_1
putfield org.jboss.resteasy.core.ExceptionHandler.mapperExecuted:Z
3: aload 3
aload 1
invokeinterface javax.ws.rs.ext.ExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 4 1 exception Ljava/lang/Throwable;
0 4 2 clazz Ljava/lang/Class;
1 4 3 mapper Ljavax/ws/rs/ext/ExceptionMapper;
MethodParameters:
Name Flags
exception
clazz
protected javax.ws.rs.core.Response handleApplicationException(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.ApplicationException);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ApplicationException;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
aload 2
ldc Lorg/jboss/resteasy/spi/ApplicationException;
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapperForClass:(Ljava/lang/Throwable;Ljava/lang/Class;)Ljavax/ws/rs/core/Response;
dup
astore 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: javax.ws.rs.core.Response
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
4: aload 3
ifnonnull 6
5: new org.jboss.resteasy.spi.UnhandledException
dup
aload 2
invokevirtual org.jboss.resteasy.spi.ApplicationException.getCause:()Ljava/lang/Throwable;
invokespecial org.jboss.resteasy.spi.UnhandledException.<init>:(Ljava/lang/Throwable;)V
athrow
6: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 7 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 7 2 e Lorg/jboss/resteasy/spi/ApplicationException;
1 7 3 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
e
public javax.ws.rs.core.Response executeExceptionMapper(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 3
start local 3 2: goto 6
3: StackMap locals: javax.ws.rs.ext.ExceptionMapper java.lang.Class
StackMap stack:
aload 3
ifnonnull 4
goto 7
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getExceptionMappers:()Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.ws.rs.ext.ExceptionMapper
astore 2
5: aload 2
ifnonnull 6
aload 3
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 3
6: StackMap locals:
StackMap stack:
aload 2
ifnull 3
7: StackMap locals:
StackMap stack:
aload 2
ifnull 13
8: aload 0
iconst_1
putfield org.jboss.resteasy.core.ExceptionHandler.mapperExecuted:Z
9: aload 2
aload 1
invokeinterface javax.ws.rs.ext.ExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 4
start local 4 10: aload 4
ifnonnull 12
11: sipush 204
invokestatic javax.ws.rs.core.Response.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
astore 4
12: StackMap locals: javax.ws.rs.core.Response
StackMap stack:
aload 4
areturn
end local 4 13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 14 1 exception Ljava/lang/Throwable;
1 14 2 mapper Ljavax/ws/rs/ext/ExceptionMapper;
2 14 3 causeClass Ljava/lang/Class;
10 13 4 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
exception
protected javax.ws.rs.core.Response unwrapException(org.jboss.resteasy.spi.HttpRequest, java.lang.Throwable);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 4
start local 4 2: aload 4
instanceof javax.ws.rs.WebApplicationException
ifeq 10
3: aload 4
checkcast javax.ws.rs.WebApplicationException
astore 5
start local 5 4: aload 5
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
astore 6
start local 6 5: aload 6
ifnull 10
6: aload 6
invokevirtual javax.ws.rs.core.Response.getEntity:()Ljava/lang/Object;
ifnull 10
aload 6
7: areturn
8: StackMap locals: org.jboss.resteasy.core.ExceptionHandler org.jboss.resteasy.spi.HttpRequest java.lang.Throwable javax.ws.rs.core.Response java.lang.Throwable javax.ws.rs.WebApplicationException javax.ws.rs.core.Response
StackMap stack: java.lang.IllegalStateException
pop
9: aload 6
areturn
end local 6 end local 5 10: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
dup
astore 3
ifnull 12
11: aload 3
areturn
12: StackMap locals:
StackMap stack:
aload 4
instanceof javax.ws.rs.WebApplicationException
ifeq 14
13: aload 0
aload 4
checkcast javax.ws.rs.WebApplicationException
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleWebApplicationException:(Ljavax/ws/rs/WebApplicationException;)Ljavax/ws/rs/core/Response;
areturn
14: StackMap locals:
StackMap stack:
aload 4
instanceof org.jboss.resteasy.spi.Failure
ifeq 16
15: aload 0
aload 1
aload 4
checkcast org.jboss.resteasy.spi.Failure
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleFailure:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/Failure;)Ljavax/ws/rs/core/Response;
areturn
16: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.unwrappedExceptions:Ljava/util/Set;
aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 18
aload 4
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
ifnull 18
17: aload 0
aload 1
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
areturn
18: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 19 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 19 2 e Ljava/lang/Throwable;
1 19 3 jaxrsResponse Ljavax/ws/rs/core/Response;
2 19 4 unwrappedException Ljava/lang/Throwable;
4 10 5 wae Ljavax/ws/rs/WebApplicationException;
5 10 6 response Ljavax/ws/rs/core/Response;
Exception table:
from to target type
6 7 8 Class java.lang.IllegalStateException
MethodParameters:
Name Flags
request
e
protected javax.ws.rs.core.Response handleFailure(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.Failure);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/Failure;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.jboss.resteasy.spi.Failure.isLoggable:()Z
ifeq 2
1: getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getHttpMethod:()Ljava/lang/String;
aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.getPath:()Ljava/lang/String;
aload 2
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.failedExecutingError:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
goto 3
2: StackMap locals:
StackMap stack:
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getHttpMethod:()Ljava/lang/String;
aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.getPath:()Ljava/lang/String;
aload 2
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.failedExecutingDebug:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jboss.resteasy.spi.Failure.getResponse:()Ljavax/ws/rs/core/Response;
ifnull 5
4: aload 2
invokevirtual org.jboss.resteasy.spi.Failure.getResponse:()Ljavax/ws/rs/core/Response;
areturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jboss.resteasy.spi.Failure.getErrorCode:()I
invokestatic javax.ws.rs.core.Response.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
astore 3
start local 3 6: aload 2
invokevirtual org.jboss.resteasy.spi.Failure.getMessage:()Ljava/lang/String;
ifnull 7
aload 3
ldc "text/html"
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.type:(Ljava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
aload 2
invokevirtual org.jboss.resteasy.spi.Failure.getMessage:()Ljava/lang/String;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
7: StackMap locals: javax.ws.rs.core.Response$ResponseBuilder
StackMap stack:
aload 3
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 8 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 8 2 failure Lorg/jboss/resteasy/spi/Failure;
6 8 3 builder Ljavax/ws/rs/core/Response$ResponseBuilder;
MethodParameters:
Name Flags
request
failure
protected javax.ws.rs.core.Response handleClientErrorException(javax.ws.rs.core.Response, java.lang.String, int, java.lang.Throwable);
descriptor: (Ljavax/ws/rs/core/Response;Ljava/lang/String;ILjava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ifnull 9
1: aload 1
checkcast org.jboss.resteasy.specimpl.BuiltResponse
astore 5
start local 5 2: aload 5
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getStatus:()I
sipush 400
if_icmpeq 4
3: aload 5
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getStatus:()I
sipush 404
if_icmpne 8
4: StackMap locals: org.jboss.resteasy.specimpl.BuiltResponse
StackMap stack:
aload 2
ifnull 8
5: aload 1
invokestatic org.jboss.resteasy.specimpl.BuiltResponse.fromResponse:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response$ResponseBuilder;
astore 6
start local 6 6: aload 6
ldc "text/html"
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.type:(Ljava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
aload 2
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
7: aload 6
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
areturn
end local 6 8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 5 9: StackMap locals:
StackMap stack:
iload 3
invokestatic javax.ws.rs.core.Response.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
astore 5
start local 5 10: aload 4
ifnonnull 14
11: aload 2
ifnull 21
12: aload 5
ldc "text/html"
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.type:(Ljava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
aload 2
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
13: goto 21
14: StackMap locals: javax.ws.rs.core.Response$ResponseBuilder
StackMap stack:
aload 4
instanceof javax.ws.rs.BadRequestException
ifeq 17
15: aload 5
sipush 400
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
16: goto 19
StackMap locals:
StackMap stack:
17: aload 4
instanceof javax.ws.rs.NotFoundException
ifeq 19
18: aload 5
sipush 404
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
19: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
ifnull 21
20: aload 5
ldc "text/html"
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.type:(Ljava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
aload 4
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
21: StackMap locals:
StackMap stack:
aload 5
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
astore 6
start local 6 22: aload 6
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 23 1 response Ljavax/ws/rs/core/Response;
0 23 2 message Ljava/lang/String;
0 23 3 errorCode I
0 23 4 cause Ljava/lang/Throwable;
2 9 5 bResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
6 8 6 builder Ljavax/ws/rs/core/Response$ResponseBuilder;
10 23 5 builder Ljavax/ws/rs/core/Response$ResponseBuilder;
22 23 6 resp Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
response
message final
errorCode final
cause final
protected javax.ws.rs.core.Response handleWriterException(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.WriterException);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/WriterException;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
aload 2
ldc Lorg/jboss/resteasy/spi/WriterException;
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapperForClass:(Ljava/lang/Throwable;Ljava/lang/Class;)Ljavax/ws/rs/core/Response;
dup
astore 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: javax.ws.rs.core.Response
StackMap stack:
aload 2
invokevirtual org.jboss.resteasy.spi.WriterException.getResponse:()Ljavax/ws/rs/core/Response;
ifnonnull 4
aload 2
invokevirtual org.jboss.resteasy.spi.WriterException.getErrorCode:()I
iconst_m1
if_icmple 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleFailure:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/Failure;)Ljavax/ws/rs/core/Response;
areturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jboss.resteasy.spi.WriterException.getCause:()Ljava/lang/Throwable;
ifnull 7
6: aload 0
aload 1
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
dup
astore 3
ifnull 7
aload 3
areturn
7: StackMap locals:
StackMap stack:
aload 2
sipush 500
invokevirtual org.jboss.resteasy.spi.WriterException.setErrorCode:(I)V
8: aload 0
aload 1
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleFailure:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/Failure;)Ljavax/ws/rs/core/Response;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 9 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 9 2 e Lorg/jboss/resteasy/spi/WriterException;
1 9 3 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
e
protected javax.ws.rs.core.Response handleReaderException(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.ReaderException);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ReaderException;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
aload 2
ldc Lorg/jboss/resteasy/spi/ReaderException;
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapperForClass:(Ljava/lang/Throwable;Ljava/lang/Class;)Ljavax/ws/rs/core/Response;
dup
astore 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: javax.ws.rs.core.Response
StackMap stack:
aload 2
invokevirtual org.jboss.resteasy.spi.ReaderException.getResponse:()Ljavax/ws/rs/core/Response;
ifnonnull 4
aload 2
invokevirtual org.jboss.resteasy.spi.ReaderException.getErrorCode:()I
iconst_m1
if_icmple 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleFailure:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/Failure;)Ljavax/ws/rs/core/Response;
areturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jboss.resteasy.spi.ReaderException.getCause:()Ljava/lang/Throwable;
ifnull 7
6: aload 0
aload 1
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
dup
astore 3
ifnull 7
aload 3
areturn
7: StackMap locals:
StackMap stack:
aload 2
sipush 400
invokevirtual org.jboss.resteasy.spi.ReaderException.setErrorCode:(I)V
8: aload 0
aload 1
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleFailure:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/Failure;)Ljavax/ws/rs/core/Response;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 9 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 9 2 e Lorg/jboss/resteasy/spi/ReaderException;
1 9 3 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
e
protected javax.ws.rs.core.Response handleWebApplicationException(javax.ws.rs.WebApplicationException);
descriptor: (Ljavax/ws/rs/WebApplicationException;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.ws.rs.NotFoundException
ifeq 3
1: getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
aload 1
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.failedToExecuteDebug:(Ljava/lang/Throwable;)V
2: goto 5
3: StackMap locals:
StackMap stack:
aload 1
instanceof org.jboss.resteasy.spi.NoLogWebApplicationException
ifne 5
4: getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
aload 1
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.failedToExecute:(Ljava/lang/Throwable;)V
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 6 1 wae Ljavax/ws/rs/WebApplicationException;
MethodParameters:
Name Flags
wae
public javax.ws.rs.core.Response handleException(org.jboss.resteasy.spi.HttpRequest, java.lang.Throwable);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExactExceptionMapper:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
2: aload 3
ifnonnull 45
3: aload 2
instanceof org.jboss.resteasy.spi.InternalServerErrorException
ifne 5
4: aload 2
instanceof javax.ws.rs.ClientErrorException
ifeq 21
5: StackMap locals: javax.ws.rs.core.Response
StackMap stack:
aload 0
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
6: aload 3
ifnonnull 45
7: getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getHttpMethod:()Ljava/lang/String;
8: aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.getPath:()Ljava/lang/String;
aload 2
9: invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.failedExecutingDebug:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
10: aload 2
instanceof org.jboss.resteasy.spi.InternalServerErrorException
ifeq 16
11: aload 0
12: aload 2
checkcast org.jboss.resteasy.spi.InternalServerErrorException
invokevirtual org.jboss.resteasy.spi.InternalServerErrorException.getResponse:()Ljavax/ws/rs/core/Response;
aload 2
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
13: aload 2
checkcast org.jboss.resteasy.spi.InternalServerErrorException
invokevirtual org.jboss.resteasy.spi.InternalServerErrorException.getErrorCode:()I
aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
14: invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleClientErrorException:(Ljavax/ws/rs/core/Response;Ljava/lang/String;ILjava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
15: goto 45
16: StackMap locals:
StackMap stack:
aload 0
17: aload 2
checkcast javax.ws.rs.ClientErrorException
invokevirtual javax.ws.rs.ClientErrorException.getResponse:()Ljavax/ws/rs/core/Response;
aload 2
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
18: aload 2
checkcast javax.ws.rs.ClientErrorException
invokevirtual javax.ws.rs.ClientErrorException.getResponse:()Ljavax/ws/rs/core/Response;
invokevirtual javax.ws.rs.core.Response.getStatus:()I
aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
19: invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleClientErrorException:(Ljavax/ws/rs/core/Response;Ljava/lang/String;ILjava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
20: goto 45
StackMap locals:
StackMap stack:
21: aload 2
instanceof javax.ws.rs.WebApplicationException
ifeq 30
22: aload 2
checkcast javax.ws.rs.WebApplicationException
astore 4
start local 4 23: aload 4
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
ifnull 26
aload 4
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
invokevirtual javax.ws.rs.core.Response.getEntity:()Ljava/lang/Object;
ifnull 26
24: aload 4
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
astore 3
25: goto 45
26: StackMap locals: javax.ws.rs.WebApplicationException
StackMap stack:
aload 0
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
27: aload 3
ifnonnull 45
28: aload 0
aload 2
checkcast javax.ws.rs.WebApplicationException
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleWebApplicationException:(Ljavax/ws/rs/WebApplicationException;)Ljavax/ws/rs/core/Response;
astore 3
end local 4 29: goto 45
StackMap locals:
StackMap stack:
30: aload 2
instanceof org.jboss.resteasy.spi.Failure
ifeq 41
31: aload 2
instanceof org.jboss.resteasy.spi.WriterException
ifeq 34
32: aload 0
aload 1
aload 2
checkcast org.jboss.resteasy.spi.WriterException
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleWriterException:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/WriterException;)Ljavax/ws/rs/core/Response;
astore 3
33: goto 45
StackMap locals:
StackMap stack:
34: aload 2
instanceof org.jboss.resteasy.spi.ReaderException
ifeq 37
35: aload 0
aload 1
aload 2
checkcast org.jboss.resteasy.spi.ReaderException
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleReaderException:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ReaderException;)Ljavax/ws/rs/core/Response;
astore 3
36: goto 45
37: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
38: aload 3
ifnonnull 45
39: aload 0
aload 1
aload 2
checkcast org.jboss.resteasy.spi.Failure
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleFailure:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/Failure;)Ljavax/ws/rs/core/Response;
astore 3
40: goto 45
41: StackMap locals:
StackMap stack:
aload 2
instanceof org.jboss.resteasy.spi.ApplicationException
ifeq 44
42: aload 0
aload 1
aload 2
checkcast org.jboss.resteasy.spi.ApplicationException
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleApplicationException:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ApplicationException;)Ljavax/ws/rs/core/Response;
astore 3
43: goto 45
44: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 3
45: StackMap locals:
StackMap stack:
aload 3
ifnonnull 47
46: new org.jboss.resteasy.spi.UnhandledException
dup
aload 2
invokespecial org.jboss.resteasy.spi.UnhandledException.<init>:(Ljava/lang/Throwable;)V
athrow
47: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 48 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 48 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 48 2 e Ljava/lang/Throwable;
1 48 3 jaxrsResponse Ljavax/ws/rs/core/Response;
23 29 4 wae Ljavax/ws/rs/WebApplicationException;
MethodParameters:
Name Flags
request
e
}
SourceFile: "ExceptionHandler.java"
InnerClasses:
public abstract ResponseBuilder = javax.ws.rs.core.Response$ResponseBuilder of javax.ws.rs.core.Response