mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 03:06:02 +03:00
Changed exception type
This commit is contained in:
parent
25342a4318
commit
806572b869
@ -219,7 +219,7 @@ class Server
|
||||
public function setOptions($bitmask = 0)
|
||||
{
|
||||
if (!is_numeric($bitmask))
|
||||
throw new \Exception();
|
||||
throw new \RuntimeException('Function requires numeric argument.');
|
||||
|
||||
$this->options = $bitmask;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user