Changed exception type

This commit is contained in:
Robert Hafner 2013-12-18 16:16:20 -08:00
parent 25342a4318
commit 806572b869

View File

@ -219,7 +219,7 @@ class Server
public function setOptions($bitmask = 0) public function setOptions($bitmask = 0)
{ {
if (!is_numeric($bitmask)) if (!is_numeric($bitmask))
throw new \Exception(); throw new \RuntimeException('Function requires numeric argument.');
$this->options = $bitmask; $this->options = $bitmask;
} }