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.core.providerfactory.ResteasyProviderFactoryImpl providerFactory;
descriptor: Lorg/jboss/resteasy/core/providerfactory/ResteasyProviderFactoryImpl;
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
checkcast org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl
putfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/core/providerfactory/ResteasyProviderFactoryImpl;
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;
protected javax.ws.rs.core.Response executeExactExceptionMapper(java.lang.Throwable, org.jboss.resteasy.tracing.RESTEasyTracingLogger);
descriptor: (Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: invokestatic org.jboss.resteasy.tracing.RESTEasyTracingLogger.empty:()Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
astore 2
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/core/providerfactory/ResteasyProviderFactoryImpl;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.getExceptionMapperForClass:(Ljava/lang/Class;)Ljavax/ws/rs/ext/ExceptionMapper;
astore 3
start local 3 3: aload 3
ifnonnull 4
aconst_null
areturn
4: StackMap locals: javax.ws.rs.ext.ExceptionMapper
StackMap stack:
aload 0
iconst_1
putfield org.jboss.resteasy.core.ExceptionHandler.mapperExecuted:Z
5: aload 2
ldc "EXCEPTION_MAPPING"
invokeinterface org.jboss.resteasy.tracing.RESTEasyTracingLogger.timestamp:(Ljava/lang/String;)J
lstore 4
start local 4 6: aload 3
aload 1
invokeinterface javax.ws.rs.ext.ExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 6
start local 6 7: aload 2
ldc "EXCEPTION_MAPPING"
lload 4
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 1
invokevirtual java.lang.Throwable.getLocalizedMessage:()Ljava/lang/String;
aastore
dup
iconst_3
aload 6
aastore
invokeinterface org.jboss.resteasy.tracing.RESTEasyTracingLogger.logDuration:(Ljava/lang/String;J[Ljava/lang/Object;)V
8: aload 6
areturn
end local 6 end local 4 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 exception Ljava/lang/Throwable;
0 9 2 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
3 9 3 mapper Ljavax/ws/rs/ext/ExceptionMapper;
6 9 4 timestamp J
7 9 6 resp Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
exception
logger
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=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExactExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 1 1 exception Ljava/lang/Throwable;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
exception
protected javax.ws.rs.core.Response executeExceptionMapperForClass(java.lang.Throwable, java.lang.Class, org.jboss.resteasy.tracing.RESTEasyTracingLogger);
descriptor: (Ljava/lang/Throwable;Ljava/lang/Class;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnonnull 2
1: invokestatic org.jboss.resteasy.tracing.RESTEasyTracingLogger.empty:()Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
astore 3
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/core/providerfactory/ResteasyProviderFactoryImpl;
aload 2
invokevirtual org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.getExceptionMapperForClass:(Ljava/lang/Class;)Ljavax/ws/rs/ext/ExceptionMapper;
astore 4
start local 4 3: aload 4
ifnonnull 4
aconst_null
areturn
4: StackMap locals: javax.ws.rs.ext.ExceptionMapper
StackMap stack:
aload 0
iconst_1
putfield org.jboss.resteasy.core.ExceptionHandler.mapperExecuted:Z
5: aload 3
ldc "EXCEPTION_MAPPING"
invokeinterface org.jboss.resteasy.tracing.RESTEasyTracingLogger.timestamp:(Ljava/lang/String;)J
lstore 5
start local 5 6: aload 4
aload 1
invokeinterface javax.ws.rs.ext.ExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 7
start local 7 7: aload 3
ldc "EXCEPTION_MAPPING"
lload 5
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 1
invokevirtual java.lang.Throwable.getLocalizedMessage:()Ljava/lang/String;
aastore
dup
iconst_3
aload 7
aastore
invokeinterface org.jboss.resteasy.tracing.RESTEasyTracingLogger.logDuration:(Ljava/lang/String;J[Ljava/lang/Object;)V
8: aload 7
areturn
end local 7 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 9 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 9 1 exception Ljava/lang/Throwable;
0 9 2 clazz Ljava/lang/Class;
0 9 3 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
3 9 4 mapper Ljavax/ws/rs/ext/ExceptionMapper;
6 9 5 timestamp J
7 9 7 resp Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
exception
clazz
logger
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=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapperForClass:(Ljava/lang/Throwable;Ljava/lang/Class;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 1 1 exception Ljava/lang/Throwable;
0 1 2 clazz Ljava/lang/Class;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
exception
clazz
protected javax.ws.rs.core.Response handleApplicationException(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.ApplicationException, org.jboss.resteasy.tracing.RESTEasyTracingLogger);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ApplicationException;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 0
aload 2
ldc Lorg/jboss/resteasy/spi/ApplicationException;
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapperForClass:(Ljava/lang/Throwable;Ljava/lang/Class;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
dup
astore 4
ifnull 3
2: aload 4
areturn
3: StackMap locals: javax.ws.rs.core.Response
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 4
4: aload 4
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 4
areturn
end local 4 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;
0 7 3 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
1 7 4 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
e
logger
protected javax.ws.rs.core.Response executeExceptionMapper(java.lang.Throwable, org.jboss.resteasy.tracing.RESTEasyTracingLogger);
descriptor: (Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: invokestatic org.jboss.resteasy.tracing.RESTEasyTracingLogger.empty:()Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
astore 2
2: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 3: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 4
start local 4 4: goto 8
5: StackMap locals: javax.ws.rs.ext.ExceptionMapper java.lang.Class
StackMap stack:
aload 4
ifnonnull 6
goto 9
6: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.ExceptionHandler.providerFactory:Lorg/jboss/resteasy/core/providerfactory/ResteasyProviderFactoryImpl;
aload 4
invokevirtual org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.getExceptionMapperForClass:(Ljava/lang/Class;)Ljavax/ws/rs/ext/ExceptionMapper;
astore 3
7: aload 3
ifnonnull 8
aload 4
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 4
8: StackMap locals:
StackMap stack:
aload 3
ifnull 5
9: StackMap locals:
StackMap stack:
aload 3
ifnull 17
10: aload 0
iconst_1
putfield org.jboss.resteasy.core.ExceptionHandler.mapperExecuted:Z
11: aload 2
ldc "EXCEPTION_MAPPING"
invokeinterface org.jboss.resteasy.tracing.RESTEasyTracingLogger.timestamp:(Ljava/lang/String;)J
lstore 5
start local 5 12: aload 3
aload 1
invokeinterface javax.ws.rs.ext.ExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
astore 7
start local 7 13: aload 2
ldc "EXCEPTION_MAPPING"
lload 5
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 1
invokevirtual java.lang.Throwable.getLocalizedMessage:()Ljava/lang/String;
aastore
dup
iconst_3
aload 7
aastore
invokeinterface org.jboss.resteasy.tracing.RESTEasyTracingLogger.logDuration:(Ljava/lang/String;J[Ljava/lang/Object;)V
14: aload 7
ifnonnull 16
15: 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 7
16: StackMap locals: long javax.ws.rs.core.Response
StackMap stack:
aload 7
areturn
end local 7 end local 5 17: 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 18 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 18 1 exception Ljava/lang/Throwable;
0 18 2 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
3 18 3 mapper Ljavax/ws/rs/ext/ExceptionMapper;
4 18 4 causeClass Ljava/lang/Class;
12 17 5 timestamp J
13 17 7 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
exception
logger
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=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExactExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 1 1 exception Ljava/lang/Throwable;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
exception
protected javax.ws.rs.core.Response unwrapException(org.jboss.resteasy.spi.HttpRequest, java.lang.Throwable, org.jboss.resteasy.tracing.RESTEasyTracingLogger);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 5
start local 5 2: aload 5
instanceof javax.ws.rs.WebApplicationException
ifeq 9
3: aload 5
checkcast javax.ws.rs.WebApplicationException
astore 6
start local 6 4: aload 6
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
astore 7
start local 7 5: aload 7
ifnull 9
6: aload 7
invokevirtual javax.ws.rs.core.Response.getEntity:()Ljava/lang/Object;
ifnull 9
aload 7
7: areturn
8: StackMap locals: org.jboss.resteasy.core.ExceptionHandler org.jboss.resteasy.spi.HttpRequest java.lang.Throwable org.jboss.resteasy.tracing.RESTEasyTracingLogger javax.ws.rs.core.Response java.lang.Throwable javax.ws.rs.WebApplicationException javax.ws.rs.core.Response
StackMap stack: java.lang.IllegalStateException
pop
end local 7 end local 6 9: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 4
10: aload 4
ifnull 12
11: aload 4
areturn
12: StackMap locals:
StackMap stack:
aload 5
instanceof javax.ws.rs.WebApplicationException
ifeq 14
13: aload 0
aload 5
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 5
instanceof org.jboss.resteasy.spi.Failure
ifeq 16
15: aload 0
aload 1
aload 5
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 5
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 5
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
ifnull 18
17: aload 0
aload 1
aload 5
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
areturn
18: StackMap locals:
StackMap stack:
aconst_null
areturn
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 19 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 19 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 19 2 e Ljava/lang/Throwable;
0 19 3 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
1 19 4 jaxrsResponse Ljavax/ws/rs/core/Response;
2 19 5 unwrappedException Ljava/lang/Throwable;
4 9 6 wae Ljavax/ws/rs/WebApplicationException;
5 9 7 response Ljavax/ws/rs/core/Response;
Exception table:
from to target type
6 7 8 Class java.lang.IllegalStateException
MethodParameters:
Name Flags
request
e
logger
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=6, 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:()Ljavax/ws/rs/core/UriInfo;
invokeinterface javax.ws.rs.core.UriInfo.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:()Ljavax/ws/rs/core/UriInfo;
invokeinterface javax.ws.rs.core.UriInfo.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;
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 3
areturn
6: StackMap locals: javax.ws.rs.core.Response
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 4
start local 4 7: aload 2
invokevirtual org.jboss.resteasy.spi.Failure.getMessage:()Ljava/lang/String;
ifnull 9
8: aload 4
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
9: StackMap locals: javax.ws.rs.core.Response$ResponseBuilder
StackMap stack:
aload 4
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
astore 5
start local 5 10: aload 5
areturn
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 11 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 11 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 11 2 failure Lorg/jboss/resteasy/spi/Failure;
4 11 3 response Ljavax/ws/rs/core/Response;
7 11 4 builder Ljavax/ws/rs/core/Response$ResponseBuilder;
10 11 5 resp Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
failure
protected javax.ws.rs.core.Response handleClientErrorException(org.jboss.resteasy.spi.HttpRequest, javax.ws.rs.ClientErrorException);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Ljavax/ws/rs/ClientErrorException;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: 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;
1: aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Ljavax/ws/rs/core/UriInfo;
invokeinterface javax.ws.rs.core.UriInfo.getPath:()Ljava/lang/String;
aload 2
2: invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.failedExecutingDebug:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
3: aload 2
invokevirtual javax.ws.rs.ClientErrorException.getResponse:()Ljavax/ws/rs/core/Response;
astore 3
start local 3 4: aload 3
ifnull 13
5: aload 3
checkcast org.jboss.resteasy.specimpl.BuiltResponse
astore 4
start local 4 6: aload 4
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getStatus:()I
sipush 400
if_icmpeq 8
7: aload 4
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getStatus:()I
sipush 404
if_icmpne 12
8: StackMap locals: javax.ws.rs.core.Response org.jboss.resteasy.specimpl.BuiltResponse
StackMap stack:
aload 2
invokevirtual javax.ws.rs.ClientErrorException.getMessage:()Ljava/lang/String;
ifnull 12
9: aload 3
invokestatic org.jboss.resteasy.specimpl.BuiltResponse.fromResponse:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response$ResponseBuilder;
astore 5
start local 5 10: 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.ClientErrorException.getMessage:()Ljava/lang/String;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
11: aload 5
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
areturn
end local 5 12: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 13: StackMap locals:
StackMap stack:
iconst_m1
invokestatic javax.ws.rs.core.Response.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
astore 4
start local 4 14: aload 2
instanceof javax.ws.rs.BadRequestException
ifeq 17
15: aload 4
sipush 400
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
16: goto 19
StackMap locals: javax.ws.rs.core.Response$ResponseBuilder
StackMap stack:
17: aload 2
instanceof javax.ws.rs.NotFoundException
ifeq 19
18: aload 4
sipush 404
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
pop
19: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.ws.rs.ClientErrorException.getMessage:()Ljava/lang/String;
ifnull 21
20: aload 4
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.ClientErrorException.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 4
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
astore 5
start local 5 22: aload 5
areturn
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 request Lorg/jboss/resteasy/spi/HttpRequest;
0 23 2 e Ljavax/ws/rs/ClientErrorException;
4 23 3 response Ljavax/ws/rs/core/Response;
6 13 4 bResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
10 12 5 builder Ljavax/ws/rs/core/Response$ResponseBuilder;
14 23 4 builder Ljavax/ws/rs/core/Response$ResponseBuilder;
22 23 5 resp Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
e
protected javax.ws.rs.core.Response handleWriterException(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.WriterException, org.jboss.resteasy.tracing.RESTEasyTracingLogger);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/WriterException;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 0
aload 2
ldc Lorg/jboss/resteasy/spi/WriterException;
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapperForClass:(Ljava/lang/Throwable;Ljava/lang/Class;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
dup
astore 4
ifnull 3
2: aload 4
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
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
dup
astore 4
ifnull 7
aload 4
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 4 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;
0 9 3 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
1 9 4 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
e
logger
protected javax.ws.rs.core.Response handleReaderException(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.ReaderException, org.jboss.resteasy.tracing.RESTEasyTracingLogger);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ReaderException;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 0
aload 2
ldc Lorg/jboss/resteasy/spi/ReaderException;
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapperForClass:(Ljava/lang/Throwable;Ljava/lang/Class;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
dup
astore 4
ifnull 3
2: aload 4
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
aload 3
invokevirtual org.jboss.resteasy.core.ExceptionHandler.unwrapException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
dup
astore 4
ifnull 7
aload 4
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 4 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;
0 9 3 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
1 9 4 jaxrsResponse Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
request
e
logger
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=3, 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;
astore 2
start local 2 6: aload 2
areturn
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 wae Ljavax/ws/rs/WebApplicationException;
6 7 2 response Ljavax/ws/rs/core/Response;
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=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 1
invokestatic org.jboss.resteasy.tracing.RESTEasyTracingLogger.getInstance:(Lorg/jboss/resteasy/spi/HttpRequest;)Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
astore 4
start local 4 2: aload 0
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExactExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
3: aload 3
ifnonnull 33
4: aload 2
instanceof javax.ws.rs.ClientErrorException
ifeq 9
5: aload 0
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
6: aload 3
ifnonnull 33
7: aload 0
aload 1
aload 2
checkcast javax.ws.rs.ClientErrorException
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleClientErrorException:(Lorg/jboss/resteasy/spi/HttpRequest;Ljavax/ws/rs/ClientErrorException;)Ljavax/ws/rs/core/Response;
astore 3
8: goto 33
StackMap locals: javax.ws.rs.core.Response org.jboss.resteasy.tracing.RESTEasyTracingLogger
StackMap stack:
9: aload 2
instanceof javax.ws.rs.WebApplicationException
ifeq 18
10: aload 2
checkcast javax.ws.rs.WebApplicationException
astore 5
start local 5 11: aload 5
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
ifnull 14
aload 5
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
invokevirtual javax.ws.rs.core.Response.getEntity:()Ljava/lang/Object;
ifnull 14
12: aload 5
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
astore 3
13: goto 33
14: StackMap locals: javax.ws.rs.WebApplicationException
StackMap stack:
aload 0
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
15: aload 3
ifnonnull 33
16: 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 5 17: goto 33
StackMap locals:
StackMap stack:
18: aload 2
instanceof org.jboss.resteasy.spi.Failure
ifeq 29
19: aload 2
instanceof org.jboss.resteasy.spi.WriterException
ifeq 22
20: aload 0
aload 1
aload 2
checkcast org.jboss.resteasy.spi.WriterException
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleWriterException:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/WriterException;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
21: goto 33
StackMap locals:
StackMap stack:
22: aload 2
instanceof org.jboss.resteasy.spi.ReaderException
ifeq 25
23: aload 0
aload 1
aload 2
checkcast org.jboss.resteasy.spi.ReaderException
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleReaderException:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ReaderException;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
24: goto 33
25: StackMap locals:
StackMap stack:
aload 0
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
26: aload 3
ifnonnull 33
27: 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
28: goto 33
29: StackMap locals:
StackMap stack:
aload 2
instanceof org.jboss.resteasy.spi.ApplicationException
ifeq 32
30: aload 0
aload 1
aload 2
checkcast org.jboss.resteasy.spi.ApplicationException
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.handleApplicationException:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/ApplicationException;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
31: goto 33
32: StackMap locals:
StackMap stack:
aload 0
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper:(Ljava/lang/Throwable;Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;)Ljavax/ws/rs/core/Response;
astore 3
33: StackMap locals:
StackMap stack:
aload 3
ifnonnull 35
34: new org.jboss.resteasy.spi.UnhandledException
dup
aload 2
invokespecial org.jboss.resteasy.spi.UnhandledException.<init>:(Ljava/lang/Throwable;)V
athrow
35: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/jboss/resteasy/core/ExceptionHandler;
0 36 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 36 2 e Ljava/lang/Throwable;
1 36 3 jaxrsResponse Ljavax/ws/rs/core/Response;
2 36 4 logger Lorg/jboss/resteasy/tracing/RESTEasyTracingLogger;
11 17 5 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