silverorange Code


Swat.SwatIntegerOverflowException
/Swat/exceptions/SwatIntegerOverflowException.php at line 12

Class SwatIntegerOverflowException

OverflowException
└─SwatIntegerOverflowException

public class SwatIntegerOverflowException
extends OverflowException

Thrown when a integer causes an arithmetic/buffer overflow

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

Field Summary
protected integer

$sign

Sign.

Constructor Summary

SwatIntegerOverflowException(string message, integer code, integer sign)

Creates a new invalid type exception.

Method Summary
integer

getSign()

Gets the sign of the integer.

Field Detail

/Swat/exceptions/SwatIntegerOverflowException.php at line 23

sign

protected integer $sign = null

Sign

The sign of the integer, either positive or negative


Constructor Detail

/Swat/exceptions/SwatIntegerOverflowException.php at line 36

SwatIntegerOverflowException

public SwatIntegerOverflowException(string message, integer code, integer sign)

Creates a new invalid type exception

Parameters:
message - the message of the exception.
code - the code of the exception.
sign - the sign of the integer, either positive or negative.

Method Detail

/Swat/exceptions/SwatIntegerOverflowException.php at line 51

getSign

public integer getSign()

Gets the sign of the integer

Returns:
The sign of the integer, either positive or negative.

silverorange Code