Extbase\Error

Class Tx_Extbase_Error_Error


public class Tx_Extbase_Error_Error

An object representation of a generic error. Subclass this to create more specific errors if necessary.

Package: Extbase
Subpackage: Error
Version: $Id: Error.php 2813 2009-07-16 14:02:34Z k-fish $
License: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
Scope: prototype


Method Summary

 void __construct(mixed $message, mixed $code)
 string getMessage()
 string getCode()
 string __toString()

Method Detail

__construct

public void __construct(mixed $message, mixed $code)

Constructs this error

Parameters

$message - An english error message which is used if no other error message can be resolved
$code - A unique error code

getMessage

public string getMessage()

Returns the error message

getCode

public string getCode()

Returns the error code

__toString

public string __toString()

Converts this error into a string