Throw better Exceptions
This commit is contained in:
@@ -53,10 +53,10 @@ class Memcached {
|
||||
|
||||
if ($memcache->getVersion() === false)
|
||||
{
|
||||
throw new \Exception('Could not establish memcached connection. Please verify your configuration.');
|
||||
throw new \RuntimeException('Could not establish memcached connection. Please verify your configuration.');
|
||||
}
|
||||
|
||||
return $memcache;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user