public final class ExceptionHelper extends Object
AlfrescoServiceException
.Modifier and Type | Method and Description |
---|---|
static void |
convertException(Exception exception)
Convert exception into AlfrescoServiceException.
|
static void |
convertStatusCode(AlfrescoSession session,
org.apache.chemistry.opencmis.client.bindings.spi.http.Response resp,
int serviceErrorCode)
Convert an HTTP error response (404 instead of 200 for example) into a
generic exception.
|
public static void convertException(Exception exception)
exception
- the underlying exception from OpenCMIS or generic
exception.public static void convertStatusCode(AlfrescoSession session, org.apache.chemistry.opencmis.client.bindings.spi.http.Response resp, int serviceErrorCode)
session
- the Alfresco session associated to the exception.resp
- the HTTP response from the server.serviceErrorCode
- the service error code associated.Copyright © 2012-2018 Alfresco Software. All Rights Reserved.