public static function exception(ApiException $exception)
    {
        $returnResponse = \Response::make($exception->jsonSerialize());

        $returnResponse->setStatusCode($exception->getStatusCode());

        return $returnResponse;
    }
public static function exception(ApiException $exception)
    {
        $returnResponse = \Response::make($exception->jsonSerialize());

        $returnResponse->setStatusCode($exception->getStatusCode());

        return $returnResponse;
    }
public static function exception ( ApiException $ exception ) { $ returnResponse = \ Response :: make ( $ exception -> jsonSerialize ( ) ) ; $ returnResponse -> setStatusCode ( $ exception -> getStatusCode ( ) ) ; return $ returnResponse ; }
Handle api exception an return proper error response
@param ApiException $exception
@return \Illuminate\Http\Response
@throws ApiException
Handle api exception an return proper error response