Class ResteasyWebApplicationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.ws.rs.WebApplicationException
-
- org.jboss.resteasy.client.exception.ResteasyWebApplicationException
-
- All Implemented Interfaces:
Serializable
,WebApplicationExceptionWrapper<jakarta.ws.rs.WebApplicationException>
public class ResteasyWebApplicationException extends jakarta.ws.rs.WebApplicationException implements WebApplicationExceptionWrapper<jakarta.ws.rs.WebApplicationException>
Wraps aWebApplicationException
with a sanitized response.- Author:
- James R. Perkins
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResteasyWebApplicationException(jakarta.ws.rs.WebApplicationException wrapped)
Creates a new exception based on the wrapped exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.WebApplicationException
unwrap()
Returns the original, unwrapped, exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResteasyWebApplicationException
public ResteasyWebApplicationException(jakarta.ws.rs.WebApplicationException wrapped)
Creates a new exception based on the wrapped exception. The response will be sanitized.- Parameters:
wrapped
- the exception to wrap
-
-
Method Detail
-
unwrap
public jakarta.ws.rs.WebApplicationException unwrap()
Description copied from interface:WebApplicationExceptionWrapper
Returns the original, unwrapped, exception.- Specified by:
unwrap
in interfaceWebApplicationExceptionWrapper<jakarta.ws.rs.WebApplicationException>
- Returns:
- the original exception
-
-