mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
20 lines
No EOL
405 B
Ruby
20 lines
No EOL
405 B
Ruby
module Fog
|
|
module Errors
|
|
|
|
class Error < StandardError
|
|
attr_accessor :verbose
|
|
|
|
def self.slurp(error, message = nil)
|
|
new_error = new(message)
|
|
new_error.set_backtrace(error.backtrace)
|
|
new_error.verbose = error.message
|
|
new_error
|
|
end
|
|
end
|
|
|
|
class MockNotImplemented < Fog::Errors::Error; end
|
|
|
|
class NotFound < Fog::Errors::Error; end
|
|
|
|
end
|
|
end |