public class ExceptionHandler extends Object
| Constructor and Description |
|---|
ExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
captureCheckedException(SecurityOfficerOMASAPIResponse response,
SecurityOfficerException error,
String exceptionClassName)
Set the exception information into the response.
|
void |
captureOMRSException(SecurityOfficerOMASAPIResponse response,
OMRSCheckedExceptionBase error) |
public void captureCheckedException(SecurityOfficerOMASAPIResponse response, SecurityOfficerException error, String exceptionClassName)
response - - REST Responseerror - returned response.exceptionClassName - - class name of the exception to recreatepublic void captureOMRSException(SecurityOfficerOMASAPIResponse response, OMRSCheckedExceptionBase error)
Copyright © 2018–2019 ODPi. All rights reserved.