Exception: Sarif::ValidationError
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.
68 69 70 71 |
# File 'lib/sarif.rb', line 68 def initialize(errors) @errors = errors super("SARIF validation failed: #{errors.first["error"]}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
66 67 68 |
# File 'lib/sarif.rb', line 66 def errors @errors end |