Class DefaultErrorExtractor
- java.lang.Object
-
- org.nuxeo.ecm.core.opencmis.bindings.DefaultErrorExtractor
-
- All Implemented Interfaces:
NuxeoCmisErrorHelper.ErrorExtractor
public class DefaultErrorExtractor extends Object implements NuxeoCmisErrorHelper.ErrorExtractor
Helper to deal with HTTP errors.- Since:
- 7.1
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NuxeoCmisErrorHelper.ErrorInfo
extractError(Exception ex)
Extracts the error from the exception.int
getErrorCode(org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException ex)
int
getHttpStatus(RecoverableClientException ex)
-
-
-
Constructor Detail
-
DefaultErrorExtractor
public DefaultErrorExtractor()
-
-
Method Detail
-
extractError
public NuxeoCmisErrorHelper.ErrorInfo extractError(Exception ex)
Description copied from interface:NuxeoCmisErrorHelper.ErrorExtractor
Extracts the error from the exception.- Specified by:
extractError
in interfaceNuxeoCmisErrorHelper.ErrorExtractor
- Parameters:
ex
- the exception- Returns:
- the error info
-
getHttpStatus
public int getHttpStatus(RecoverableClientException ex)
-
getErrorCode
public int getErrorCode(org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException ex)
-
-