silverorange Code


Site.SiteInvalidPropertyException
/Site/exceptions/SiteInvalidPropertyException.php at line 12

Class SiteInvalidPropertyException

Exception
└─SwatException
└─SiteException
└─SiteInvalidPropertyException

public class SiteInvalidPropertyException
extends SiteException

Thrown when an invalid property of an object is accessed

Copyright:
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 Site.SiteException
http_status_code, title
Fields inherited from Swat.SwatException
backtrace, class, displayer, logger
Constructor Summary

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

Creates a new invalid property exception.

Method Summary
mixed

getObject()

Gets the object the property is invalid for.

string

getProperty()

Gets the name of the property that is invalid.

Field Detail

/Site/exceptions/SiteInvalidPropertyException.php at line 28

object

protected mixed $object = null

The object the property is invalid for


/Site/exceptions/SiteInvalidPropertyException.php at line 21

property

protected string $property = null

The name of the property that is invalid


Constructor Detail

/Site/exceptions/SiteInvalidPropertyException.php at line 41

SiteInvalidPropertyException

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

Creates a new invalid property 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

/Site/exceptions/SiteInvalidPropertyException.php at line 57

getObject

public mixed getObject()

Gets the object the property is invalid for

Returns:
the object the property is invalid for.

/Site/exceptions/SiteInvalidPropertyException.php at line 70

getProperty

public string getProperty()

Gets the name of the property that is invalid

Returns:
the name of the property that is invalid.

silverorange Code