Sha256: aad081e7c82975cd603eab4e0a374b038a1cc98bf56c388c1821328861b66410

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

<?php

namespace Predis;

class ResponseError implements IRedisServerError {
    private $_message;

    public function __construct($message) {
        $this->_message = $message;
    }

    public function getMessage() {
        return $this->_message;
    }

    public function getErrorType() {
        list($errorType, ) = explode(' ', $this->getMessage(), 2);
        return $errorType;
    }

    public function __toString() {
        return $this->getMessage();
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

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