silverorange Code


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

Class SwatInvalidTypeException

Exception
└─SwatException
└─SwatInvalidTypeException

public class SwatInvalidTypeException
extends SwatException

Thrown when a value is of the wrong type

Copyright:
2007 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
protected mixed

$value

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

Field Detail

/Swat/exceptions/SwatInvalidTypeException.php at line 23

value

protected mixed $value = null

The value that is of the wrong type


Constructor Detail

/Swat/exceptions/SwatInvalidTypeException.php at line 35

SwatInvalidTypeException

public SwatInvalidTypeException(string message, integer code, mixed value)

Creates a new invalid type exception

Parameters:
message - the message of the exception.
code - the code of the exception.
value - the value that is of the wrong type.

Method Detail

/Swat/exceptions/SwatInvalidTypeException.php at line 49

getValue

public mixed getValue()

Gets the value that is of the wrong type

Returns:
the value that is of the wrong type.

silverorange Code