Exception: Heroku::Commander::Errors::Base
- Inherits:
-
StandardError
- Object
- StandardError
- Heroku::Commander::Errors::Base
- Defined in:
- lib/heroku/commander/errors/base.rb
Direct Known Subclasses
AlreadyRunningError, ClientEIOError, CommandError, InvalidOptionError, MissingCommandError, MissingPidError, NoSuchProcessError, UnexpectedOutputError
Instance Attribute Summary collapse
-
#problem ⇒ Object
readonly
Problem occurred.
-
#resolution ⇒ Object
readonly
Suggested problem resolution.
-
#summary ⇒ Object
readonly
Summary of the problem.
Instance Method Summary collapse
-
#compose_message(key, attributes = {}) ⇒ Object
Compose the message.
Instance Attribute Details
#problem ⇒ Object (readonly)
Problem occurred.
7 8 9 |
# File 'lib/heroku/commander/errors/base.rb', line 7 def problem @problem end |
#resolution ⇒ Object (readonly)
Suggested problem resolution.
13 14 15 |
# File 'lib/heroku/commander/errors/base.rb', line 13 def resolution @resolution end |
#summary ⇒ Object (readonly)
Summary of the problem.
10 11 12 |
# File 'lib/heroku/commander/errors/base.rb', line 10 def summary @summary end |
Instance Method Details
#compose_message(key, attributes = {}) ⇒ Object
Compose the message.
Parameters
- key
-
Lookup key in the translation table.
- attributes
-
The objects to pass to create the message.
19 20 21 22 23 24 25 26 27 |
# File 'lib/heroku/commander/errors/base.rb', line 19 def (key, attributes = {}) @problem = create_problem(key, attributes) @summary = create_summary(key, attributes) @resolution = create_resolution(key, attributes) "\nProblem:\n #{@problem}"+ "\nSummary:\n #{@summary}"+ "\nResolution:\n #{@resolution}" end |