public class ServerAuthorExceptionHandler extends Object
| Constructor and Description |
|---|
ServerAuthorExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
captureCheckedException(FFDCResponse response,
OCFCheckedExceptionBase error,
String exceptionClassName)
Method for capturing an exception into a REST response.
|
static ServerAuthorViewServiceException |
mapOMAGConfigurationErrorException(String className,
String methodName,
OMAGConfigurationErrorException error)
Map an OMAG configuration exception to a ServerAuthorViewServiceException
|
static ServerAuthorViewServiceException |
mapOMAGInvalidParameterException(String className,
String methodName,
OMAGInvalidParameterException omagException) |
static ServerAuthorViewServiceException |
mapOMAGUserNotAuthorizedException(String className,
String methodName,
OMAGNotAuthorizedException omagException) |
public static void captureCheckedException(FFDCResponse response, OCFCheckedExceptionBase error, String exceptionClassName)
response - REST Responseerror - returned response.exceptionClassName - class name of the exception to recreatepublic static ServerAuthorViewServiceException mapOMAGUserNotAuthorizedException(String className, String methodName, OMAGNotAuthorizedException omagException)
public static ServerAuthorViewServiceException mapOMAGInvalidParameterException(String className, String methodName, OMAGInvalidParameterException omagException)
public static ServerAuthorViewServiceException mapOMAGConfigurationErrorException(String className, String methodName, OMAGConfigurationErrorException error)
className - the name of the calling classmethodName - the name of the operation being requestederror - the OMAGConfigurationErrorException error to be mappedCopyright © 2018–2020 ODPi. All rights reserved.