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

Class: Cgiapp2_Exception

Source Location: /Cgiapp2/Exception.class.php

Class Overview

Exception
   |
   --Cgiapp2_Exception

Cgiapp2 Exception Handling


Author(s):

Version:

  • @release-version@

Copyright:

  • (c) 2006 - present Matthew Weier O'Phinney

Methods


Child classes:

Cgiapp2_Exception_Error
Cgiapp2 Error -> Exception Handling

Class Details

[line 32]
Cgiapp2 Exception Handling

Cgiapp2_Exception implements an Observer pattern. You may build observer classes that receive notifications when Cgiapp2_Exceptions (or classes derived from it) are raised. Such classes need only have an event() method that accepts a Cgiapp2_Exception object, and have to register their class or an instance with Cgiapp2_Exception using attach().




Tags:

version:  @release-version@
copyright:  (c) 2006 - present Matthew Weier O'Phinney
author:  Matthew Weier O'Phinney <mweierophinney@gmail.com>


[ Top ]


Class Methods


constructor __construct [line 50]

Cgiapp2_Exception __construct( string $message, [int $code = 0], int 2)

Constructor



Tags:

access:  public


Parameters:

int   2  
string   $message  
int   $code  

[ Top ]

method attach [line 76]

void attach( string|object $class)

Attach an observer



Tags:

static:  
access:  public


Parameters:

string|object    $class   Classname or object

[ Top ]

method notify [line 89]

void notify( )

Notify observers of an error event



Tags:

access:  public


[ Top ]

method __toString [line 63]

void __toString( )

String representation of exception



Tags:

access:  public


[ Top ]


Documentation generated on Sat, 03 Jun 2006 10:48:42 -0400 by phpDocumentor 1.3.0RC5