Sha256: 30847ab134f337e9bff36b6ea9874edcd9edf9f710d23a1e87a3a49afacc3d17

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

<?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());
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appstats-0.25.1 doc/benchmarks/Predis/ServerException.php
appstats-0.25.0 doc/benchmarks/Predis/ServerException.php
appstats-0.24.0 doc/benchmarks/Predis/ServerException.php
appstats-0.23.5 doc/benchmarks/Predis/ServerException.php
appstats-0.23.4 doc/benchmarks/Predis/ServerException.php
appstats-0.23.3 doc/benchmarks/Predis/ServerException.php
appstats-0.23.2 doc/benchmarks/Predis/ServerException.php