Exception: Sunshine::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Sunshine::Exception
- Defined in:
- lib/sunshine/exceptions.rb
Overview
A standard sunshine exception
Direct Known Subclasses
CmdError, ConnectionError, DaemonError, DependencyError, DeployError, RepoError, TimeoutError
Instance Method Summary collapse
-
#initialize(input = nil, message = nil) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(input = nil, message = nil) ⇒ Exception
Returns a new instance of Exception.
6 7 8 9 10 11 12 13 14 |
# File 'lib/sunshine/exceptions.rb', line 6 def initialize input=nil, =nil if ::Exception === input = [, input.].compact.join(": ") super() self.set_backtrace(input.backtrace) else super(input) end end |