silverorange Code


Swat.SwatInvalidPropertyException
/Swat/exceptions/SwatInvalidPropertyException.php at line 14

Class SwatInvalidPropertyException

Exception
└─SwatException
└─SwatInvalidPropertyException

public class SwatInvalidPropertyException
extends SwatException

Thrown when an invalid property of an object is accessed

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
protected mixed

$object

The object the property is invalid for.

protected string

$property

The name of the property that is invalid.

Fields inherited from Swat.SwatException
backtrace, class, displayer, logger
Constructor Summary

SwatInvalidPropertyException(string message, integer code, mixed object, string property)

Creates a new invalid class exception.

Method Summary
mixed

getObject()

Gets the object the property is invalid for.

string

getProperty()

Gets the name of the property that is invalid.

Methods inherited from Swat.SwatException
display, displayStyleSheet, formatSensitiveParam, formatValue, getArguments, getClass, getSummary, handle, isSensitiveParameter, log, process, setDisplayer, setLogger, setupHandler, toString, toXHTML, wasHandled

Field Detail

/Swat/exceptions/SwatInvalidPropertyException.php at line 30

object

protected mixed $object = null

The object the property is invalid for


/Swat/exceptions/SwatInvalidPropertyException.php at line 23

property

protected string $property = null

The name of the property that is invalid


Constructor Detail

/Swat/exceptions/SwatInvalidPropertyException.php at line 43

SwatInvalidPropertyException

public SwatInvalidPropertyException(string message, integer code, mixed object, string property)

Creates a new invalid class exception

Parameters:
message - the message of the exception.
code - the code of the exception.
object - the object the property is invalid for.
property - the name of the property that is invalid

Method Detail

/Swat/exceptions/SwatInvalidPropertyException.php at line 59

getObject

public mixed getObject()

Gets the object the property is invalid for

Returns:
the object the property is invalid for.

/Swat/exceptions/SwatInvalidPropertyException.php at line 72

getProperty

public string getProperty()

Gets the name of the property that is invalid

Returns:
the name of the property that is invalid.

silverorange Code