Class: Pwl::ErrorMessage
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(template, exit_code, default_replacements = {}) ⇒ ErrorMessage
constructor
A new instance of ErrorMessage.
Methods inherited from Message
Constructor Details
#initialize(template, exit_code, default_replacements = {}) ⇒ ErrorMessage
Returns a new instance of ErrorMessage.
37 38 39 40 |
# File 'lib/pwl/message.rb', line 37 def initialize(template, exit_code, default_replacements = {}) raise ReservedMessageCodeError.new("Exit code 0 is reserved for success messages") if 0 == exit_code super(template, exit_code, default_replacements) end |
Instance Method Details
#error? ⇒ Boolean
42 43 44 |
# File 'lib/pwl/message.rb', line 42 def error? true end |