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
unwrappedExceptions
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=6, 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 5
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;
ifnull 5
aload 5
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
invokevirtual javax.ws.rs.core.Response.getEntity:()Ljava/lang/Object;
ifnull 5
aload 5
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
areturn
end local 5 5: StackMap locals: javax.ws.rs.core.Response java.lang.Throwable
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 7
6: aload 3
areturn
7: StackMap locals:
StackMap stack:
aload 4
instanceof javax.ws.rs.WebApplicationException
ifeq 9
8: 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
9: StackMap locals:
StackMap stack:
aload 4
instanceof org.jboss.resteasy.spi.Failure
ifeq 11
10: 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
11: 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 13
aload 4
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
ifnull 13
12: 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
13: 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 14 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 14 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 14 2 e Ljava/lang/Throwable;
1 14 3 jaxrsResponse Ljavax/ws/rs/core/Response;
2 14 4 unwrappedException Ljava/lang/Throwable;
4 5 5 wae Ljavax/ws/rs/WebApplicationException;
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 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=4, 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;
dup
astore 3
ifnull 2
aload 3
areturn
2: StackMap locals: javax.ws.rs.core.Response
StackMap stack:
aload 2
instanceof org.jboss.resteasy.spi.ApplicationException
ifeq 4
3: 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;
areturn
4: StackMap locals:
StackMap stack:
aload 2
instanceof org.jboss.resteasy.spi.WriterException
ifeq 6
5: 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;
areturn
6: StackMap locals:
StackMap stack:
aload 2
instanceof org.jboss.resteasy.spi.ReaderException
ifeq 8
7: 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;
areturn
8: StackMap locals:
StackMap stack:
aload 2
instanceof javax.ws.rs.WebApplicationException
ifeq 11
9: aload 2
checkcast javax.ws.rs.WebApplicationException
astore 4
start local 4 10: aload 4
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
ifnull 11
aload 4
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
invokevirtual javax.ws.rs.core.Response.getEntity:()Ljava/lang/Object;
ifnull 11
aload 4
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
areturn
end local 4 11: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
dup
astore 3
ifnull 13
12: aload 3
areturn
13: StackMap locals:
StackMap stack:
aload 2
instanceof javax.ws.rs.WebApplicationException
ifeq 15
14: 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;
areturn
15: StackMap locals:
StackMap stack:
aload 2
instanceof org.jboss.resteasy.spi.Failure
ifeq 17
16: 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;
areturn
17: 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.unknownException:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
18: new org.jboss.resteasy.spi.UnhandledException
dup
aload 2
invokespecial org.jboss.resteasy.spi.UnhandledException.<init>:(Ljava/lang/Throwable;)V
athrow
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;
10 11 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