Class: CMSException

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

Class CMSException

Class Overview

Base class for all Exceptions.

DO NOT DIRECTLY USE THIS CLASS, USE SUBCLASSES OF EXCEPTION!

Located in /CORE/system/classes/exception/CMSException.php [line 39]

LogEntry
   |
   --CMSException
Author(s):
  • Kevin Papst
Information Tags:
Version:  $Id: CMSException.php,v 1.5 2008/12/10 21:46:28 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Descendants
Child Class Description
CoreException This represents a Core Exception, ONLY to be processed by the System.

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From LogEntry

LogEntry::LogEntry()
Creates a new LogEntry.
LogEntry::getFilename()
LogEntry::getLevel()
Returns the entries leveƶ.
LogEntry::getLinenum()
LogEntry::getMessage()
Returns the Error Message.
LogEntry::getNamespace()
Return the namespace or an empty string, if no namesapce is configured.
LogEntry::setFilename()
LogEntry::setLinenum()
LogEntry::setNamespace()
LogEntry::toString()

[ Top ]
Method Summary
CMSException   CMSException()   Creates a new CMSException.
int   getCode()   Returns the Error Code.
boolean   logException()   Returns whether this Error should write an Log Message or not.
void   toString()  

[ Top ]
Methods
Constructor CMSException  [line 49]

  CMSException CMSException( int $code, String $message, [ $namespace = ""]  )

Creates a new CMSException.

Parameters:
int   $code:  the Error Code
String   $message:  the Error Message
   $namespace: 

API Tags:
Access:  public


[ Top ]
getCode  [line 58]

  int getCode( )

Returns the Error Code.


API Tags:
Return:  the Error Code


[ Top ]
logException  [line 67]

  boolean logException( )

Returns whether this Error should write an Log Message or not.

Might be overwritten by implementing classes!


API Tags:
Return:  whether the Exception is logged or not


Redefined in descendants as:

[ Top ]
toString  [line 71]

  void toString( )



Redefinition of:
LogEntry::toString()

[ Top ]