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.ErrorInfoextractError(Exception ex)Extracts the error from the exception.intgetErrorCode(org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException ex)intgetHttpStatus(RecoverableClientException ex)
-
-
-
Constructor Detail
-
DefaultErrorExtractor
public DefaultErrorExtractor()
-
-
Method Detail
-
extractError
public NuxeoCmisErrorHelper.ErrorInfo extractError(Exception ex)
Description copied from interface:NuxeoCmisErrorHelper.ErrorExtractorExtracts the error from the exception.- Specified by:
extractErrorin 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)
-
-