Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RedisException < Exception
- attr_accessor :original_exception
- end
- class Redis
- class Client
- def call(*args)
- begin
- process(args) do
- read
- end
- rescue Exception=>e
- err = RedisException.new(e.to_s)
- err.original_exception = e
- raise err
- end
- end
- end
Add Comment
Please, Sign In to add comment