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

Class: KException

Source Location: /libraries/koowa/exception/exception.php

Class Overview

Exception
   |
   --KException

Exception Class


Author(s):

Implements interfaces:

Variables

Methods


Child classes:

KHelperException
Koowa Helper Exception class
KHttpException
Koowa HTTP Exception class
KEventException
Koowa Event Exception class
KServiceException
Service Exception class
KControllerException
Koowa Controller Exception class
KMixinException
Koowa Mixin Exception class
KFilterException
Filter Exception class
KInflectorException
Koowa Date Exception class
KDispatcherException
Koowa View Exception class
KRequestException
Request Exception class
KModelException
Koowa Model Exception class
KDatabaseException
Koowa Database Exception class
KConfigException
Koowa Config Exception class
KLoaderAdapterException
Koowa Factory Adapter Exception class
KLoaderException
Koowa Loader Exception class
KObjectException
Koowa Date Exception class
KViewException
Koowa View Exception class
KTemplateException
Koowa Template Exception class
KDateException
Koowa Date Exception class
KCommandException
Koowa Command Exception class
KBehaviorException
Behavior Exception class

Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$string
$trace

Inherited Methods

Class: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Class Details

[line 23]
Exception Class

KException is the base class for all koowa related exceptions and provides an additional method for printing up a detailed view of an exception.

KException has support for nested exceptions which is a feature that was only added in PHP 5.3




Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Variables

$_previous =  null

[line 30]

Previous exception if nested exception



Tags:

access:  private

Type:   Exception


[ Top ]



Class Methods


constructor __construct [line 39]

KException __construct( [string $message = null], [integer $code = KHttpResponse::INTERNAL_SERVER_ERROR], [ $previous = null])

Constructor



Tags:

access:  public


Overridden in child classes as:

KObjectException::__construct()
Constructor


Implementation of:
KExceptionInterface::__construct()
Constructor
Overrides Exception::constructor __construct ( [$message = ], [$code = ] ) (parent method not documented)

Parameters:

string   $message   The exception message
integer   $code   The exception code
object The   $previous   previous exception

[ Top ]

method _getPrevious [line 76]

Exception _getPrevious( )

Get the previous Exception



Tags:

access:  protected


[ Top ]

method __call [line 62]

mixed __call( string $method, $args)

Overloading

For PHP < 5.3.0, provides access to the getPrevious() method.




Tags:

access:  public


Parameters:

string   $method   The function name
array   $args   The function arguments

[ Top ]

method __toString [line 86]

string __toString( )

Format the exception for display



Tags:

access:  public



Implementation of:
KExceptionInterface::__toString()
Format the exception for display
Overrides Exception::__toString ( ) (parent method not documented)

[ Top ]


Documentation generated on Wed, 22 May 2013 03:01:34 +0200 by phpDocumentor 1.4.3