Exception: Relaxo::QueryServer::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Relaxo::QueryServer::ValidationError
- Defined in:
- lib/relaxo/query_server/designer.rb
Overview
Indicates that a validation error has occured.
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
The details of the validation error, typically: => “Message” or => “Message”.
Instance Method Summary collapse
-
#initialize(details) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(details) ⇒ ValidationError
Returns a new instance of ValidationError.
29 30 31 32 33 |
# File 'lib/relaxo/query_server/designer.rb', line 29 def initialize(details) super "Validation failed!" @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
The details of the validation error, typically:
{:forbidden => "Message"}
or
{:unauthorized => "Message"}
39 40 41 |
# File 'lib/relaxo/query_server/designer.rb', line 39 def details @details end |