Exception: Textus::EtagMismatch
- Defined in:
- lib/textus/errors.rb
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #exit_code, #hint
Instance Method Summary collapse
-
#initialize(k, w, g) ⇒ EtagMismatch
constructor
A new instance of EtagMismatch.
Methods inherited from Error
Constructor Details
#initialize(k, w, g) ⇒ EtagMismatch
Returns a new instance of EtagMismatch.
106 107 108 109 110 111 112 |
# File 'lib/textus/errors.rb', line 106 def initialize(k, w, g) super( "etag_mismatch", "etag mismatch on '#{k}'", details: { "key" => k, "wanted" => w, "got" => g }, hint: "another writer changed this key; run 'textus get #{k}' to fetch the latest etag", ) end |