@Component public class Exceptions extends Object
| Constructor and Description |
|---|
Exceptions() |
@Autowired(required=false) public void setProcessor(List<ExceptionProcessor> processors)
public static Throwable unwrapIncludeInvocationException(Throwable throwable)
public static InvocationException create(javax.ws.rs.core.Response.StatusType status, Object errorData)
public static InvocationException create(javax.ws.rs.core.Response.StatusType status, String code, String msg)
public static InvocationException consumer(String code, String msg)
public static InvocationException consumer(String code, String msg, Throwable cause)
public static InvocationException genericConsumer(String msg)
public static InvocationException genericConsumer(String msg, Throwable cause)
public static InvocationException producer(String code, String msg)
public static InvocationException producer(String code, String msg, Throwable cause)
public static InvocationException genericProducer(String msg)
public static InvocationException genericProducer(String msg, Throwable cause)
public static javax.ws.rs.core.Response.StatusType getGenericStatus(@Nonnull Invocation invocation)
public static Response toConsumerResponse(Invocation invocation, Throwable throwable)
public static Response toProducerResponse(@Nullable Invocation invocation, Throwable exception)
public static InvocationException convert(@Nonnull Invocation invocation, Throwable throwable)
public static InvocationException convert(@Nullable Invocation invocation, Throwable throwable, javax.ws.rs.core.Response.StatusType genericStatus)
public static boolean isPrintInvocationStackTrace()
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.