/**
* Handle the provided exception.
*
* @param Exception $e The exception being handled
*
* @return \Tobscure\JsonApi\Exception\Handler\ResponseBag
*
* @since 4.0.0
*/
public function handle(Exception $e)
{
$status = 400;
if ($e->getCode()) {
$status = $e->getCode();
}
$error = ['title' => $e->getMessage()];
return new ResponseBag($status, [$error]);
}