MessagePack\Exception\IntegerOverflowException::getValue PHP Method

getValue() public method

public getValue ( )
    public function getValue()
    {
        return $this->value;
    }

Usage Example

 public function testConstructor()
 {
     $value = -1;
     $errorCode = 42;
     $prevException = new \Exception();
     $exception = new IntegerOverflowException($value, $errorCode, $prevException);
     $this->assertSame($value, $exception->getValue());
     $this->assertSame('The value is too big: 18446744073709551615.', $exception->getMessage());
     $this->assertSame($errorCode, $exception->getCode());
     $this->assertSame($prevException, $exception->getPrevious());
 }
IntegerOverflowException