src/Traits/MicroServiceExceptionHandlerTrait.php
protected function handleGenericException(Exception $e)
    {
        // Get the status code and build the message.
        $statusCode = 500;
        $message = $e->getMessage();

        return $this->generateResponse('', null, $statusCode, Status::FAIL, $message);
    }
protected function handleGenericException(Exception $e)
    {
        // Get the status code and build the message.
        $statusCode = 500;
        $message = $e->getMessage();

        return $this->generateResponse('', null, $statusCode, Status::FAIL, $message);
    }
protected function handleGenericException ( Exception $ e ) { // Get the status code and build the message. $ statusCode = 500 ; $ message = $ e -> getMessage ( ) ; return $ this -> generateResponse ( '' , null , $ statusCode , Status :: FAIL , $ message ) ; }
Handle a generic exception and build return data.

@param Exception $e
@return mixed
Handle a generic exception and build return data .