1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/errors.rb
2010-06-11 23:11:02 -07:00

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