Exception: Machinery::Errors::SystemDescriptionValidationFailed
- Inherits:
-
SystemDescriptionError
- Object
- StandardError
- MachineryError
- SystemDescriptionError
- Machinery::Errors::SystemDescriptionValidationFailed
- Defined in:
- lib/exceptions.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(errors) ⇒ SystemDescriptionValidationFailed
constructor
A new instance of SystemDescriptionValidationFailed.
- #to_s ⇒ Object
Constructor Details
#initialize(errors) ⇒ SystemDescriptionValidationFailed
Returns a new instance of SystemDescriptionValidationFailed.
87 88 89 |
# File 'lib/exceptions.rb', line 87 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
84 85 86 |
# File 'lib/exceptions.rb', line 84 def errors @errors end |
#header ⇒ Object
Returns the value of attribute header.
85 86 87 |
# File 'lib/exceptions.rb', line 85 def header @header end |
Instance Method Details
#to_s ⇒ Object
91 92 93 94 95 96 97 98 99 |
# File 'lib/exceptions.rb', line 91 def to_s = "" if @header += header + "\n\n" end += @errors.join("\n") += "\n" end |