class Caprese::RequestDocumentInvalidError
Thrown when a request document contained an error that made it unprocessable
@param [Symbol] field the field of the document that contained the error @param [Symbol] code the code for the error @param [Hash] t the translation params for the error
Attributes
document[R]
Public Class Methods
new(field: nil, code: :invalid, t: {})
click to toggle source
Calls superclass method
Caprese::Error::new
# File lib/caprese/errors.rb, line 12 def initialize(field: nil, code: :invalid, t: {}) super @document = true @header = { status: :unprocessable_entity } end