protected function catchHaltedMiddleware(bool $setting = null)
    {
        if ($setting === null) {
            return $this->catchHaltExceptions;
        }
        $this->catchHaltExceptions = $setting;
        return $this;
    }
protected function catchHaltedMiddleware(bool $setting = null)
    {
        if ($setting === null) {
            return $this->catchHaltExceptions;
        }
        $this->catchHaltExceptions = $setting;
        return $this;
    }
protected function catchHaltedMiddleware ( bool $ setting = null ) { if ( $ setting === null ) { return $ this -> catchHaltExceptions ; } $ this -> catchHaltExceptions = $ setting ; return $ this ; }
Getter and setting for the exception catching property.

@param bool $setting
@return $this|bool
Getter and setting for the exception catching property .