mirror of
https://github.com/predis/predis.git
synced 2026-08-20 06:31:50 +00:00
15 lines
344 B
PHP
15 lines
344 B
PHP
<?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());
|
|
}
|
|
}
|