Methods

Class/Module Index [+]

Quicksearch

Fog::Rackspace::Errors

Public Class Methods

included(mod) click to toggle source
# File lib/fog/rackspace/errors.rb, line 5
def self.included(mod)
  mod.class_eval           class NotFound < Fog::Service::NotFound            attr_reader :region, :status_code            def to_s              status = status_code ? "[HTTP #{status_code}] " : ""              message = region ? "resource not found in #{region} region" : super              "#{status}#{message}"            end            def self.slurp(error, region=nil)              exception = NotFound.new              exception.instance_variable_set(:@region, region)              exception.instance_variable_set(:@status_code, error.response.status) rescue nil              exception            end          end, __FILE__, __LINE__
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.