Exception: Blingee::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/blingee/exceptions.rb

Direct Known Subclasses

ConnectionError, ErrorWithResponse

Class Method Summary collapse

Class Method Details

.from_exception(e) ⇒ Object



5
6
7
8
9
# File 'lib/blingee/exceptions.rb', line 5

def self.from_exception(e)
  new("#{e.class.name}: #{e.message}").tap do |exception|
    exception.set_backtrace(e.backtrace)
  end
end