Exception: RubyAPI::Schema::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyAPI::Schema::ValidationError
- Defined in:
- lib/rubyapi/schema.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
6 7 8 9 |
# File 'lib/rubyapi/schema.rb', line 6 def initialize(errors) @errors = errors super("Validation failed: #{errors.map { |k, v| "#{k}: #{v}" }.join(', ')}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/rubyapi/schema.rb', line 4 def errors @errors end |