Exception: GeoCerts::Exception

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

Overview

The lowest-level GeoCerts exception. All exceptions raised from within this library should be inherited from this exception.

Direct Known Subclasses

ConnectionError, ExceptionWithResponse, RequestTimeout, ResourceInvalid, ResourceNotCreated

Class Method Summary (collapse)

Class Method Details

+ (Object) from(exception)

Wraps the given exception, keeping the message and backtrace.



24
25
26
27
28
# File 'lib/geo_certs/exceptions.rb', line 24

def self.from(exception)
  new("%s: %s" % [exception.class.name, exception.message]).tap do |me|
    me.set_backtrace(exception.backtrace)
  end
end