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/core/errors.rb

20 lines
405 B
Ruby
Raw Normal View History

2010-06-10 22:04:06 -04:00
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
2010-06-10 22:04:06 -04:00
end
class MockNotImplemented < Fog::Errors::Error; end
class NotFound < Fog::Errors::Error; end
end
end