src/ExceptionFather.php
public function build(int $httpCode = 200)
    {
        //Lo primero que todo
        $this->buildException();

        if($this->log){
            $this->renderLog();
        }

        if(!$this->showDetails){
            $this->getException()->setDetails(null);
        }

        if(!$this->showErrors){
            $this->getException()->setErrors(null);
        }

        $this->getException()->setHttpCode($httpCode);

        throw $this->getException();
    }
public function build(int $httpCode = 200)
    {
        //Lo primero que todo
        $this->buildException();

        if($this->log){
            $this->renderLog();
        }

        if(!$this->showDetails){
            $this->getException()->setDetails(null);
        }

        if(!$this->showErrors){
            $this->getException()->setErrors(null);
        }

        $this->getException()->setHttpCode($httpCode);

        throw $this->getException();
    }
public function build ( int $ httpCode = 200 ) { //Lo primero que todo $ this -> buildException ( ) ; if ( $ this -> log ) { $ this -> renderLog ( ) ; } if ( ! $ this -> showDetails ) { $ this -> getException ( ) -> setDetails ( null ) ; } if ( ! $ this -> showErrors ) { $ this -> getException ( ) -> setErrors ( null ) ; } $ this -> getException ( ) -> setHttpCode ( $ httpCode ) ; throw $ this -> getException ( ) ; }
Se encarga de le ejecucion para la contruccion de la escepcion
@throws ExceptionJSON
@throws ExceptionVIEW
Se encarga de le ejecucion para la contruccion de la escepcion