1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace Predis;
- class ServerException extends PredisException implements IRedisServerError
- {
-
- public function getErrorType()
- {
- list($errorType, ) = explode(' ', $this->getMessage(), 2);
- return $errorType;
- }
-
- public function toResponseError()
- {
- return new ResponseError($this->getMessage());
- }
- }
|