Phly Documentation Phly
[ return to channel ] [ class tree: Phly ] [ index: Phly ] [ all elements ]

Class: Phly_Exception

Source Location: /Phly_Exception/Phly/Exception.php

Class Phly_Exception

Class Overview

Phly Exception Handling

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

Located in /Phly_Exception/Phly/Exception.php [line 39]

Exception
   |
   --Phly_Exception
Author(s): Information Tags:
Version:  @release-version@
Copyright:  2006 - Present, Matthew Weier O'Phinney
[ Top ]
Direct descendents
Child Class Description
Phly_InputFilter_Exception Phly_InputFilter exceptions
Phly_Config_Exception Phly_Config exceptions
Phly_Auth_Exception Phly_Auth exceptions
Phly_Hash_Exception Phly_Hash exceptions

[ Top ]
Method Summary
Phly_Exception   __construct()   Constructor
void   attach()   Attach an observer
void   notify()   Notify observers of an error event
void   __toString()   String representation of exception

[ Top ]
Methods
Constructor __construct  [line 57]

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

Constructor

Parameters:
int   2: 
string   $message: 
int   $code: 

API Tags:
Access:  public


[ Top ]
attach  [line 83]

  void attach( string|object $class  )

Attach an observer

Parameters:
string|object    $class:  Classname or object

API Tags:
Static:  
Access:  public


[ Top ]
notify  [line 96]

  void notify( )

Notify observers of an error event


API Tags:
Access:  public


[ Top ]
__toString  [line 70]

  void __toString( )

String representation of exception


API Tags:
Access:  public


[ Top ]