Class: Capistrano::Slacky::Facade::Exception

Inherits:
Block::Context show all
Defined in:
lib/capistrano/slacky/facade/exception.rb

Instance Method Summary collapse

Methods inherited from Block::Context

#as_json

Constructor Details

#initialize(exception: $ERROR_INFO) ⇒ Exception

Returns a new instance of Exception.



15
16
17
18
19
# File 'lib/capistrano/slacky/facade/exception.rb', line 15

def initialize(exception: $ERROR_INFO)
  super(
    (exception || DefaultException.new).message
  )
end