Exception: Plz::UnparsableJsonParam

Inherits:
Error
  • Object
show all
Defined in:
lib/plz/error.rb

Constant Summary

Constants inherited from Error

Error::USAGE

Instance Method Summary collapse

Constructor Details

#initialize(value: nil) ⇒ UnparsableJsonParam

Returns a new instance of UnparsableJsonParam.



25
26
27
# File 'lib/plz/error.rb', line 25

def initialize(value: nil)
  @value = value
end

Instance Method Details

#to_sObject



29
30
31
# File 'lib/plz/error.rb', line 29

def to_s
  "Given `#{@value}` was not valid as JSON"
end