DB
[ class tree: DB ] [ index: DB ] [ all elements ]

Class: DB_Error

Source Location: /DB-1.9.2/DB.php

Class Overview

PEAR_Error
   |
   --DB_Error

DB_Error implements a class for reporting portable database error messages


Author(s):

Version:

  • Release: 1.9.2

Copyright:

  • 1997-2007 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 947]
DB_Error implements a class for reporting portable database error messages


[ Top ]


Method Detail

__construct (Constructor)   [line 962]

DB_Error __construct( [mixed $code = DB_ERROR], [int $mode = PEAR_ERROR_RETURN], [int $level = E_USER_NOTICE], [mixed $debuginfo = null])

DB_Error constructor
  • See: PEAR_Error

Parameters:

mixed   $code   —  DB error code, or string with error message
int   $mode   —  what "error mode" to operate in
int   $level   —  what error level to use for $mode & PEAR_ERROR_TRIGGER
mixed   $debuginfo   —  additional debug info, such as the last query

[ Top ]

__call   [line 979]

void __call( $method, $arguments)

Workaround to both avoid the "Redefining already defined constructor"

PHP error and provide backward compatibility in case someone is calling DB_Error() dynamically

  • Access: public

Parameters:

   $method   — 
   $arguments   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:04:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.