Package com.emc.documentum.rest.error
Class RestServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.emc.documentum.rest.error.RestServiceException
- All Implemented Interfaces:
Serializable
The REST service exception class transforms a
DfException
or a DfRuntimeException
into a REST error representation. It reads the DFC to REST error message mapping from a mapping JSON file and
outputs the RestError
. Please see ClasspathErrorMappingLoader
for the details of the error message mapping.- See Also:
-
ClasspathErrorMappingLoader
RestError
- Serialized Form
-
Constructor Summary
ConstructorDescriptionRestServiceException
(com.documentum.fc.common.DfException dfException, String controller, String method) ConstructorRestServiceException
(com.documentum.fc.common.DfRuntimeException dfrException, String controller, String method) Constructor -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestServiceException
public RestServiceException(com.documentum.fc.common.DfException dfException, String controller, String method) Constructor- Parameters:
dfException
- original DFC exceptioncontroller
- controller namemethod
- method name
-
RestServiceException
public RestServiceException(com.documentum.fc.common.DfRuntimeException dfrException, String controller, String method) Constructor- Parameters:
dfrException
- original DFC exceptioncontroller
- controller namemethod
- method name
-
-
Method Details
-
toError
Build the REST error instance from a DFC exception.- Returns:
- an REST error instance
-