Exception: Katello::Errors::TemplateValidationException
- Inherits:
-
StandardError
- Object
- StandardError
- Katello::Errors::TemplateValidationException
- Defined in:
- app/lib/katello/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(msg, errors = []) ⇒ TemplateValidationException
constructor
A new instance of TemplateValidationException.
- #message ⇒ Object
Constructor Details
#initialize(msg, errors = []) ⇒ TemplateValidationException
Returns a new instance of TemplateValidationException.
62 63 64 65 |
# File 'app/lib/katello/errors.rb', line 62 def initialize(msg, errors = []) @errors = errors super(msg) end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
60 61 62 |
# File 'app/lib/katello/errors.rb', line 60 def errors @errors end |
Instance Method Details
#message ⇒ Object
71 72 73 74 75 76 77 |
# File 'app/lib/katello/errors.rb', line 71 def if @errors.nil? "#{to_s}: " + _("No errors") else "#{to_s}: #{errors.join(', ')}" end end |