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

Class: RecordException

Source Location: /PhpDocumentor-1.2.0beta2/phpDocumentor/Errors.inc

Class Overview

RecordWarning
   |
   --RecordError
      |
      --RecordException

encapsulates error information


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 431]
encapsulates error information


[ Top ]


Class Variables

$info =  ''

[line 439]


Type:   mixed


[ Top ]

$type =  'phpDocumentor_exception_descrip'

[line 437]

name of global variable that descriptors for this warning/error is kept

Type:   string
Overrides:   Array


[ Top ]



Method Detail

RecordException (Constructor)   [line 472]

RecordException RecordException( integer $num, string $file, integer $linenum, [array $data = false])

  • Global: array $setting: we use the target attribute to tell the user where phpdoc_exceptions.log is located

Parameters:

string   $file     filename this error occurred in ($file)
integer   $linenum     line number this error occurred on ($linenum)
integer   $num     Exception number defined in Errors.inc
array   $data     array of variables to var_dump

[ Top ]

output   [line 441]

void output( [mixed $string = false])


Overrides RecordError::output() (prints the error)
[ Top ]

writeException   [line 456]

void writeException( mixed $data)

writes information needed to debug a phpDocumentor exception.

An exception is distinguished from an error or warning in that a bug in phpDocumentor raises an exception, rather than a mistake in the DocBlock or files parsed. Exception output log is very useful in helping us to debug phpDocumentor bugs

  • Global: array $setting: we use the target attribute to write the exception log to the target directory

[ Top ]


Documentation generated on Fri, 30 Apr 2004 22:09:42 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.