Class RestServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.emc.documentum.rest.error.RestServiceException
All Implemented Interfaces:
Serializable

public class RestServiceException extends Exception
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:
  • Constructor Details

    • RestServiceException

      public RestServiceException(com.documentum.fc.common.DfException dfException, String controller, String method)
      Constructor
      Parameters:
      dfException - original DFC exception
      controller - controller name
      method - method name
    • RestServiceException

      public RestServiceException(com.documentum.fc.common.DfRuntimeException dfrException, String controller, String method)
      Constructor
      Parameters:
      dfrException - original DFC exception
      controller - controller name
      method - method name
  • Method Details

    • toError

      public RestError toError()
      Build the REST error instance from a DFC exception.
      Returns:
      an REST error instance