public class ExceptionConverter extends Object
| Constructor and Description |
|---|
ExceptionConverter() |
| Modifier and Type | Method and Description |
|---|---|
static IOException |
convertJerseyException(String verb,
String targetURL,
com.sun.jersey.api.client.ClientHandlerException exception)
Handle a client-side Jersey exception.
|
static IOException |
convertJerseyException(String verb,
String targetURL,
com.sun.jersey.api.client.UniformInterfaceException exception)
Uprate error codes 400 and up into faults;
404 is converted to a
FileNotFoundException,
401 to ForbiddenException
FileNotFoundException for an unknown resource
PathAccessDeniedException for access denied
PathIOException for anything else |
public static IOException convertJerseyException(String verb, String targetURL, com.sun.jersey.api.client.UniformInterfaceException exception)
FileNotFoundException,
401 to ForbiddenException
FileNotFoundException for an unknown resource
PathAccessDeniedException for access denied
PathIOException for anything elseverb - HTTP Verb usedtargetURL - URL being targetedexception - original exceptionpublic static IOException convertJerseyException(String verb, String targetURL, com.sun.jersey.api.client.ClientHandlerException exception)
If there's an inner IOException, return that.
Otherwise: create a new wrapper IOE including verb and target details
verb - HTTP Verb usedtargetURL - URL being targetedexception - original exceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.