lib/response/index.js
function exception(exceptionObj) {
  const errorMessage = getErrorMessage(exceptionObj);
  const errorDetails = getErrorDetails(exceptionObj);

  return {
    ok: false,
    error: errorMessage,
    details: errorDetails,
  };
}
function exception(exceptionObj) {
  const errorMessage = getErrorMessage(exceptionObj);
  const errorDetails = getErrorDetails(exceptionObj);

  return {
    ok: false,
    error: errorMessage,
    details: errorDetails,
  };
}
function exception ( exceptionObj ) { const errorMessage = getErrorMessage ( exceptionObj ) ; const errorDetails = getErrorDetails ( exceptionObj ) ; return { ok : false , error : errorMessage , details : errorDetails , } ; }
`exception` should return an object with message and details
exception should return an object with message and details