lib/ezdb/classes/ezdbinterface.php
public function setErrorHandling( $errorHandling )
    {
        if ( $errorHandling != eZDB::ERROR_HANDLING_EXCEPTIONS &&
             $errorHandling != eZDB::ERROR_HANDLING_STANDARD )
            throw new RuntimeException( "Unknown eZDB error handling mode $errorHandling" );

        $this->errorHandling = $errorHandling;
    }
public function setErrorHandling( $errorHandling )
    {
        if ( $errorHandling != eZDB::ERROR_HANDLING_EXCEPTIONS &&
             $errorHandling != eZDB::ERROR_HANDLING_STANDARD )
            throw new RuntimeException( "Unknown eZDB error handling mode $errorHandling" );

        $this->errorHandling = $errorHandling;
    }
public function setErrorHandling ( $ errorHandling ) { if ( $ errorHandling != eZDB :: ERROR_HANDLING_EXCEPTIONS && $ errorHandling != eZDB :: ERROR_HANDLING_STANDARD ) throw new RuntimeException ( "Unknown eZDB error handling mode $errorHandling" ) ; $ this -> errorHandling = $ errorHandling ; }
Sets the eZDB error handling mode
@param int $errorHandling
Possible values are:pm
- eZDB::ERROR_HANDLING_STANDARD: backward compatible error handling, using reportError
- eZDB::ERROR_HANDLING_EXCEPTION: using exceptions
@since 4.5
Sets the eZDB error handling mode