Exception: GeoCerts::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- GeoCerts::Exception
- 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)
-
+ (Object) from(exception)
Wraps the given exception, keeping the message and backtrace.
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.]).tap do |me| me.set_backtrace(exception.backtrace) end end |