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.
100 101 102 |
# File 'lib/exceptions.rb', line 100 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
97 98 99 |
# File 'lib/exceptions.rb', line 97 def errors @errors end |
#header ⇒ Object
Returns the value of attribute header.
98 99 100 |
# File 'lib/exceptions.rb', line 98 def header @header end |
Instance Method Details
#to_s ⇒ Object
104 105 106 107 108 109 110 111 112 |
# File 'lib/exceptions.rb', line 104 def to_s = "" if @header += header + "\n\n" end += @errors.join("\n") += "\n" end |