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