Exception: Sunshine::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sunshine/exceptions.rb

Overview

A standard sunshine exception

Instance Method Summary collapse

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, message=nil
  if ::Exception === input
    message = [message, input.message].compact.join(": ")
    super(message)
    self.set_backtrace(input.backtrace)
  else
    super(input)
  end
end