Exception: Ldbws::Request::ParamValidationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ldbws/request/base.rb

Overview

Raised when an error occurs when validating request parameters. Messages are passed through directly from dry-schema.

Instance Method Summary collapse

Constructor Details

#initialize(messages) ⇒ ParamValidationError

:nodoc:



72
73
74
# File 'lib/ldbws/request/base.rb', line 72

def initialize(messages) # :nodoc:
  @messages = messages.to_h
end

Instance Method Details

#messagesObject

Returns the validation error messages as a hash.



77
78
79
# File 'lib/ldbws/request/base.rb', line 77

def messages
  @messages
end