sendOtherExceptionErrorToUser static method
ResponseHolder
sendOtherExceptionErrorToUser(})
Implementation
static ResponseHolder sendOtherExceptionErrorToUser(
ResponseHolder response,
String e,
String? code, {
int errorCode = 500,
}) {
return response.writeJson(
{
'error': e,
'code': code,
},
code: errorCode,
);
}