src/Common/Service/Database/CI_DB.php
public function display_error($error = '', $swap = '', $native = false)
    {
        if (is_array($error)) {
            $error = implode('; ', $error);
        }
        throw new QueryException($error);
    }
public function display_error($error = '', $swap = '', $native = false)
    {
        if (is_array($error)) {
            $error = implode('; ', $error);
        }
        throw new QueryException($error);
    }
public function display_error ( $ error = '' , $ swap = '' , $ native = false ) { if ( is_array ( $ error ) ) { $ error = implode ( '; ' , $ error ) ; } throw new QueryException ( $ error ) ; }
Display an error message using an exception rather than a view

@param    string $error  The error message
@param    string $swap   Any "swap" values
@param    bool   $native Whether to localize the message

@return    void
Display an error message using an exception rather than a view