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

Class: PEAR_Error

Source Location: /PEAR-1.9.4/PEAR.php

Class Overview


Standard PEAR error class for PHP 4


Author(s):

Version:

  • Release: 1.9.4

Copyright:

  • 1997-2006 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 796]
Standard PEAR error class for PHP 4

This class is supserseded by PEAR_Exception in PHP 5



[ Top ]


Class Variables

$backtrace =  null

[line 804]


Type:   mixed


[ Top ]

$code =  -1

[line 801]


Type:   mixed


[ Top ]

$error_message_prefix =  ''

[line 798]


Type:   mixed


[ Top ]

$level =  E_USER_NOTICE

[line 800]


Type:   mixed


[ Top ]

$message =  ''

[line 802]


Type:   mixed


[ Top ]

$mode =  PEAR_ERROR_RETURN

[line 799]


Type:   mixed


[ Top ]

$userinfo =  ''

[line 803]


Type:   mixed


[ Top ]



Method Detail

PEAR_Error (Constructor)   [line 826]

PEAR_Error PEAR_Error( [string $message = 'unknown error'], [int $code = null], [int $mode = null], [mixed $options = null], [string $userinfo = null])

PEAR_Error constructor
  • Access: public

Parameters:

string   $message     message
int   $code     (optional) error code
int   $mode     (optional) error mode, one of: PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER, PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION
mixed   $options     (optional) error level, _OR_ in the case of PEAR_ERROR_CALLBACK, the callback function or object/method tuple.
string   $userinfo     (optional) additional user/debug info

[ Top ]

addUserInfo   [line 995]

void addUserInfo( $info)


Parameters:

   $info     

[ Top ]

getBacktrace   [line 984]

array getBacktrace( [int $frame = null])

Get the call backtrace from where the error was generated.

Supported with PHP 4.3.0 or newer.

  • Return: Backtrace, or NULL if not available.
  • Access: public

Parameters:

int   $frame     (optional) what frame to fetch

[ Top ]

getCallback   [line 916]

mixed getCallback( )

Get the callback function/method from an error object.
  • Return: callback function or object/method array
  • Access: public

[ Top ]

getCode   [line 938]

int getCode( )

Get error code from an error object
  • Return: error code
  • Access: public

[ Top ]

getDebugInfo   [line 971]

string getDebugInfo( )

Get additional debug information supplied by the application.
  • Return: debug information
  • Access: public

[ Top ]

getMessage   [line 927]

string getMessage( )

Get the error message from an error object.
  • Return: full error message
  • Access: public

[ Top ]

getMode   [line 905]

int getMode( )

Get the error mode from an error object.
  • Return: error mode
  • Access: public

[ Top ]

getType   [line 949]

string getType( )

Get the name of this error/exception.
  • Return: error/exception name (type)
  • Access: public

[ Top ]

getUserInfo   [line 960]

string getUserInfo( )

Get additional user-supplied information.
  • Return: user-supplied information
  • Access: public

[ Top ]

toString   [line 1015]

string toString( )

Make a string representation of this object.
  • Return: a string with an object summary
  • Access: public

[ Top ]

__toString   [line 1004]

void __toString( )


[ Top ]


Documentation generated on Wed, 06 Jul 2011 23:31:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.