\cg_exception

A simple class library to extend the standard exception class and provides ome cmsms related lang string lookups.

Summary

Methods
Properties
Constants
__construct()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string  $str = '', integer  $code, \Exception  $parent = null) 

Takes an exception message of the form [module]%%key[%%suffix] and format a language string

Parameters

string $str

The exception message

integer $code

The exception code

\Exception $parent

a parent exception

__toString()

__toString() 

Convert this exception to a string.