Compare commits
No commits in common. "5e613fd9d3fa09ad641bf50066af751c178bf038" and "0c4bc87ee98fd77378a77072cbaa43dc8cab48c8" have entirely different histories.
5e613fd9d3
...
0c4bc87ee9
|
@ -32,10 +32,8 @@ namespace IRaCIS.Core.Application.Filter
|
|||
|
||||
if (context.Exception.GetType() == typeof(BusinessValidationFailedException))
|
||||
{
|
||||
var error = context.Exception as BusinessValidationFailedException;
|
||||
|
||||
context.Result = new JsonResult(ResponseOutput.NotOk(context.Exception.Message, error!.Code));
|
||||
}
|
||||
context.Result = new JsonResult(ResponseOutput.NotOk(context.Exception.Message,ApiResponseCodeEnum.BusinessValidationFailed));
|
||||
}
|
||||
else if(context.Exception.GetType() == typeof(QueryBusinessObjectNotExistException))
|
||||
{
|
||||
context.Result = new JsonResult(ResponseOutput.NotOk( context.Exception.Message, ApiResponseCodeEnum.DataNotExist));
|
||||
|
|
Loading…
Reference in New Issue