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)
Map an OMAGInvalidParameterException to a ServerAuthorViewServiceException which is more consumable / meaningful to the UI
|
static ServerAuthorViewServiceException |
mapOMAGUserNotAuthorizedException(String className,
String methodName,
OMAGNotAuthorizedException omagException)
Map an OMAGNotAuthorizedException to a ServerAuthorViewServiceException which is more consumable / meaningful to the UI
|
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)
className - the name of the calling classmethodName - the name of the operation being requestedomagException - supplied OMAGNotAuthorizedExceptionpublic static ServerAuthorViewServiceException mapOMAGInvalidParameterException(String className, String methodName, OMAGInvalidParameterException omagException)
className - the name of the calling classmethodName - the name of the operation being requestedomagException - supplied OMAGInvalidParameterExceptionpublic 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–2021 LF AI & Data Foundation. All rights reserved.