src/Traits/MicroServiceExceptionHandlerTrait.php
protected function handleModelNotFoundException(Exception $e)
    {
        // Get the status code and build the message.
        $statusCode = 404;
        $reflection = new \ReflectionClass($e->getModel());
        $message = $reflection->getShortName() . ' not found';

        return $this->generateResponse('', null, $statusCode, Status::FAIL, $message);
    }
protected function handleModelNotFoundException(Exception $e)
    {
        // Get the status code and build the message.
        $statusCode = 404;
        $reflection = new \ReflectionClass($e->getModel());
        $message = $reflection->getShortName() . ' not found';

        return $this->generateResponse('', null, $statusCode, Status::FAIL, $message);
    }
protected function handleModelNotFoundException ( Exception $ e ) { // Get the status code and build the message. $ statusCode = 404 ; $ reflection = new \ ReflectionClass ( $ e -> getModel ( ) ) ; $ message = $ reflection -> getShortName ( ) . ' not found' ; return $ this -> generateResponse ( '' , null , $ statusCode , Status :: FAIL , $ message ) ; }
Handle a model not found exception and build return data.

@param Exception $e
@return mixed
Handle a model not found exception and build return data .