Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/www/apache/doc2//pear/PEAR_Error.php
PEAR 2000/12/03 -

PEAR_Error

PEAR_Error

Warning: documentation is missing.

 

private class PEAR_Error


 
Direct known subclasses: DB_Error, DB_Warning

Public Method Summary

void

PEAR_Error([ string $message, integer $code ], string $mode, string $options, string $debuginfo)

PEAR_Error constructor
int

getMode()

Get the error mode from an error object.
mixed

getCallback()

Get the callback function/method from an error object.
string

getMessage()

Get the error message from an error object.
int

getCode()

Get error code from an error object
string

getType()

Get the name of this error/exception.
string

getDebugInfo()

Get additional debug information supplied by the application.
string

toString()

Make a string representation of this object.

Private Field Summary

string

$error_message_prefix

string

$error_prepend

string

$error_append

string

$mode

string

$level

integer

$code

string

$message

string

$debuginfo

string

$file

integer

$line

Public Method Details

PEAR_Error

public void PEAR_Error( [ string $message, integer $code ], string $mode, string $options, string $debuginfo )

  PEAR_Error constructor

Parameter
string $message = >>'unknown error'<<
, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER or
PEAR_ERROR_CALLBACK
integer $code = >>0<<
/method
tuple.
string $mode
Warning: documentation is missing.
string $options
Warning: documentation is missing.
string $debuginfo
Warning: documentation is missing.
Returns void


getMode

public int getMode( )

  Get the error mode from an error object.

Returns int

error mode


getCallback

public mixed getCallback( )

  Get the callback function/method from an error object.

Returns mixed

callback function or object/method array


getMessage

public string getMessage( )

  Get the error message from an error object.

Returns string

full error message


getCode

public int getCode( )

  Get error code from an error object

Returns int

error code


getType

public string getType( )

  Get the name of this error/exception.

Returns string

error /exception name (type)


getDebugInfo

public string getDebugInfo( )

  Get additional debug information supplied by the application.

Returns string

debug information


toString

public string toString( )

  Make a string representation of this object.

Returns string

a string with an object summary


Private Field Details

$error_message_prefix

private string $error_message_prefix

>>''<<



$error_prepend

private string $error_prepend

>>''<<



$error_append

private string $error_append

>>''<<



$mode

private string $mode

>>PEAR_ERROR_RETURN<<



$level

private string $level

>>E_USER_NOTICE<<



$code

private integer $code

>>-1<<



$message

private string $message

>>''<<



$debuginfo

private string $debuginfo

>>''<<



$file

private string $file

>>''<<



$line

private integer $line

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta