IRedisServerError.php 779 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Predis;
  11. /**
  12. * Represents an error returned by Redis (replies identified by "-" in the
  13. * Redis response protocol) during the execution of an operation on the server.
  14. *
  15. * @author Daniele Alessandri <suppakilla@gmail.com>
  16. */
  17. interface IRedisServerError extends IReplyObject
  18. {
  19. /**
  20. * Returns the error message
  21. *
  22. * @return string
  23. */
  24. public function getMessage();
  25. /**
  26. * Returns the error type (e.g. ERR, ASK, MOVED)
  27. *
  28. * @return string
  29. */
  30. public function getErrorType();
  31. }