class LD::Patch::Error
Attributes
code[R]
The status code associated with this error
Public Class Methods
new(message, **options)
click to toggle source
Initializes a new patch error instance.
@param [String, to_s] message @param [Hash{Symbol => Object}] options @option options [Integer] :code (422)
Calls superclass method
# File lib/ld/patch.rb, line 45 def initialize(message, **options) @code = options.fetch(:status_code, 422) super(message.to_s) end