Sha256: 5340428d60d68c29a536f6041d0d30a98f452c83de5336fe53dda20d2628f015
Contents?: true
Size: 626 Bytes
Versions: 3
Compression:
Stored size: 626 Bytes
Contents
require 'riakpb' module Riakpb # Exception raised when the expected response code from Riakpb # fails to match the actual response code. class FailedRequest < StandardError include Riakpb::Util::Translation attr_reader :expected attr_reader :actual attr_reader :output attr_reader :message def initialize(expected=nil, actual=nil, output=nil, message=nil) @expected = expected @actual = actual @output = output @message = message || "failed_request" super t(@message, :expected => @expected, :actual => @actual, :output => @output.inspect) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riakpb-0.3.0 | lib/riakpb/failed_request.rb |
riakpb-0.2.3 | lib/riakpb/failed_request.rb |
riakpb-0.2.2 | lib/riakpb/failed_request.rb |