Exception: Composer::Json::JsonValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/composer/json/json_validaton_error.rb

Overview

Represents a Json Validation error

PHP Authors: Jordi Boggiano <[email protected]>

Ruby Authors: Ioannis Kappas <[email protected]>

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ JsonValidationError

Returns a new instance of JsonValidationError.



24
25
26
# File 'lib/composer/json/json_validaton_error.rb', line 24

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



22
23
24
# File 'lib/composer/json/json_validaton_error.rb', line 22

def errors
  @errors
end