private function returnGeneralErrorResponse($e)
    {
        $backtrace = $this->config('debug.backtrace')? ['error' => ['backtrace' => $e->getTrace()]] : [];
        return $this->response->error($e->getCode(), $e->getMessage(), $backtrace);
    }
private function returnGeneralErrorResponse($e)
    {
        $backtrace = $this->config('debug.backtrace')? ['error' => ['backtrace' => $e->getTrace()]] : [];
        return $this->response->error($e->getCode(), $e->getMessage(), $backtrace);
    }
private function returnGeneralErrorResponse ( $ e ) { $ backtrace = $ this -> config ( 'debug.backtrace' ) ? [ 'error' => [ 'backtrace' => $ e -> getTrace ( ) ] ] : [ ] ; return $ this -> response -> error ( $ e -> getCode ( ) , $ e -> getMessage ( ) , $ backtrace ) ; }
Returns a generic error response

@return array Response
Returns a generic error response