public function __construct($value, $code = null, \Exception $previous = null) { $message = \sprintf('The value is too big: %u.', $value); parent::__construct($message, $code, $previous); $this->value = $value; }
public function __construct($expectedLength, $actualLength, $code = null, \Exception $previous = null) { $message = "Not enough data to unpack: expected {$expectedLength}, got {$actualLength}."; parent::__construct($message, $code, $previous); }