Exception
└─SwatException
└─SwatInvalidPropertyException
public class SwatInvalidPropertyException
extends SwatException
| Field Summary | |
|---|---|
| protected mixed | The object the property is invalid for. |
| protected string | 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 | Gets the object the property is invalid for. |
| string | 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 | |
protected mixed $object = null
The object the property is invalid for
protected string $property = null
The name of the property that is invalid
public SwatInvalidPropertyException(string message, integer code, mixed object, string property)
Creates a new invalid class exception
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 invalidpublic mixed getObject()
Gets the object the property is invalid for
public string getProperty()
Gets the name of the property that is invalid
Thrown when an invalid property of an object is accessed