Class: ExceptionHandler

Source Location: /CORE/system/classes/exception/ExceptionHandler.php

Class ExceptionHandler

Class Overview

Class used for handling Exceptions.

Located in /CORE/system/classes/exception/ExceptionHandler.php [line 38]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: ExceptionHandler.php,v 1.16 2008/11/30 15:17:59 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
static boolean   isException()   Checks if the given Object is a Exception we can work with!
static void   processAdminException()   Display a Exception that was caused within the Administration.
static void   processCoreException()   Processes the Exception by including the desired Exception Template.
static void   processSystemException()   This kind of Exception should only be used by the KERNEL.

[ Top ]
Methods
static method isException  [line 171]

  static boolean isException( Exception $exception, [String $classToCheck = 'CoreException']  )

Checks if the given Object is a Exception we can work with!

Parameters:
Exception   $exception:  the Exception to check
String   $classToCheck:  Name of the Class to check

API Tags:
Return:  true if it is of correct Object type, otherwise false
Access:  public


[ Top ]
static method processAdminException  [line 121]

  static void processAdminException( CoreException $exception  )

Display a Exception that was caused within the Administration.

Do NOT use this method outside the Administration environment.

Parameters:
CoreException   $exception:  the Exception to Display

API Tags:
Access:  public


[ Top ]
static method processCoreException  [line 47]

  static void processCoreException( CoreException $exception  )

Processes the Exception by including the desired Exception Template.

This is found by calling

  1. new Layout('ERROR''error-' $exception->getCode())
.

Parameters:
CoreException   $exception:  the CoreException that should be processed

API Tags:
Access:  public


[ Top ]
static method processSystemException  [line 87]

  static void processSystemException( CoreException $exception  )

This kind of Exception should only be used by the KERNEL.

Error messages that are thrown via this handler can NOT be customized for each Consumer!

Parameters:
CoreException   $exception:  the CoreException that should be processed

API Tags:
Access:  public


[ Top ]