Guest User

Untitled

a guest
Jun 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class RedisException < Exception
  2. attr_accessor :original_exception
  3. end
  4. class Redis
  5. class Client
  6. def call(*args)
  7. begin
  8. process(args) do
  9. read
  10. end
  11. rescue Exception=>e
  12. err = RedisException.new(e.to_s)
  13. err.original_exception = e
  14. raise err
  15. end
  16. end
  17. end
Add Comment
Please, Sign In to add comment