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