code/libraries/joomlatools/library/exception/handler/abstract.php
public function enable($type = self::TYPE_ALL)
    {
        if($type & self::TYPE_EXCEPTION && !($this->_exception_type & self::TYPE_EXCEPTION))
        {
            set_exception_handler(array($this, '_handleException'));
            $this->_exception_type |= self::TYPE_EXCEPTION;
        }

        if($type & self::TYPE_ERROR && !($this->_exception_type & self::TYPE_ERROR))
        {
            set_error_handler(array($this, '_handleError'));
            $this->_exception_type |= self::TYPE_ERROR;
        }

        if($type & self::TYPE_FAILURE && !($this->_exception_type & self::TYPE_FAILURE))
        {
            if (!$this->__shutdown_registered)
            {
                register_shutdown_function(array($this, '_handleFailure'));
                $this->__shutdown_registered = true;
            }

            $this->_exception_type |= self::TYPE_FAILURE;
        }

        return $this;
    }
public function enable($type = self::TYPE_ALL)
    {
        if($type & self::TYPE_EXCEPTION && !($this->_exception_type & self::TYPE_EXCEPTION))
        {
            set_exception_handler(array($this, '_handleException'));
            $this->_exception_type |= self::TYPE_EXCEPTION;
        }

        if($type & self::TYPE_ERROR && !($this->_exception_type & self::TYPE_ERROR))
        {
            set_error_handler(array($this, '_handleError'));
            $this->_exception_type |= self::TYPE_ERROR;
        }

        if($type & self::TYPE_FAILURE && !($this->_exception_type & self::TYPE_FAILURE))
        {
            if (!$this->__shutdown_registered)
            {
                register_shutdown_function(array($this, '_handleFailure'));
                $this->__shutdown_registered = true;
            }

            $this->_exception_type |= self::TYPE_FAILURE;
        }

        return $this;
    }
public function enable ( $ type = self :: TYPE_ALL ) { if ( $ type & self :: TYPE_EXCEPTION && ! ( $ this -> _exception_type & self :: TYPE_EXCEPTION ) ) { set_exception_handler ( array ( $ this , '_handleException' ) ) ; $ this -> _exception_type |= self :: TYPE_EXCEPTION ; } if ( $ type & self :: TYPE_ERROR && ! ( $ this -> _exception_type & self :: TYPE_ERROR ) ) { set_error_handler ( array ( $ this , '_handleError' ) ) ; $ this -> _exception_type |= self :: TYPE_ERROR ; } if ( $ type & self :: TYPE_FAILURE && ! ( $ this -> _exception_type & self :: TYPE_FAILURE ) ) { if ( ! $ this -> __shutdown_registered ) { register_shutdown_function ( array ( $ this , '_handleFailure' ) ) ; $ this -> __shutdown_registered = true ; } $ this -> _exception_type |= self :: TYPE_FAILURE ; } return $ this ; }
Enable exception handling

@param integer $type The type of exceptions to enable
@return $this
Enable exception handling