Exception
└─SwatException
└─SwatInvalidTypeException
public class SwatInvalidTypeException
extends SwatException
| Field Summary | |
|---|---|
| protected mixed | The value that is of the wrong type. |
| Fields inherited from Swat.SwatException | |
|---|---|
| backtrace, class, displayer, logger | |
| Constructor Summary | |
|---|---|
SwatInvalidTypeException(string message, integer code, mixed value) Creates a new invalid type exception. |
|
| Method Summary | |
|---|---|
| mixed | getValue() Gets the value that is of the wrong type. |
| Methods inherited from Swat.SwatException | |
|---|---|
| display, displayStyleSheet, formatSensitiveParam, formatValue, getArguments, getClass, getSummary, handle, isSensitiveParameter, log, process, setDisplayer, setLogger, setupHandler, toString, toXHTML, wasHandled | |
protected mixed $value = null
The value that is of the wrong type
public SwatInvalidTypeException(string message, integer code, mixed value)
Creates a new invalid type exception
message - the message of the exception.code - the code of the exception.value - the value that is of the wrong type.public mixed getValue()
Gets the value that is of the wrong type
Thrown when a value is of the wrong type