Exception: Plz::UnparsableJsonParam
- Defined in:
- lib/plz/error.rb
Constant Summary
Constants inherited from Error
Instance Method Summary collapse
-
#initialize(value: nil) ⇒ UnparsableJsonParam
constructor
A new instance of UnparsableJsonParam.
- #to_s ⇒ Object
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_s ⇒ Object
29 30 31 |
# File 'lib/plz/error.rb', line 29 def to_s "Given `#{@value}` was not valid as JSON" end |