Exception: Babl::ModuleError
- Inherits:
-
StandardError
- Object
- StandardError
- Babl::ModuleError
- Defined in:
- lib/babl.rb
Instance Attribute Summary collapse
-
#exitcode ⇒ Object
readonly
Returns the value of attribute exitcode.
-
#payload_url ⇒ Object
readonly
Returns the value of attribute payload_url.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ModuleError
constructor
A new instance of ModuleError.
- #to_s ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ ModuleError
Returns a new instance of ModuleError.
15 16 17 18 19 20 |
# File 'lib/babl.rb', line 15 def initialize opts = {} @stdout = opts[:stdout] @stderr = opts[:stderr] @exitcode = opts[:exitcode] @payload_url = opts[:payload_url] end |
Instance Attribute Details
#exitcode ⇒ Object (readonly)
Returns the value of attribute exitcode.
13 14 15 |
# File 'lib/babl.rb', line 13 def exitcode @exitcode end |
#payload_url ⇒ Object (readonly)
Returns the value of attribute payload_url.
13 14 15 |
# File 'lib/babl.rb', line 13 def payload_url @payload_url end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
13 14 15 |
# File 'lib/babl.rb', line 13 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
13 14 15 |
# File 'lib/babl.rb', line 13 def stdout @stdout end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/babl.rb', line 22 def to_s "Module execution failed with exitcode #{exitcode}. Payload url: #{payload_url}. Stderr:\n#{stderr}" end |