Exception: Fog::Errors::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fog/core/errors.rb

Direct Known Subclasses

AWS::AutoScaling::IdentifierTaken, AWS::AutoScaling::ResourceInUse, AWS::AutoScaling::ValidationError, AWS::ELB::DuplicatePolicyName, AWS::ELB::IdentifierTaken, AWS::ELB::InvalidConfigurationRequest, AWS::ELB::InvalidInstance, AWS::ELB::PolicyNotFound, AWS::ELB::PolicyTypeNotFound, AWS::ELB::Throttled, AWS::ELB::TooManyPolicies, AWS::ELB::ValidationError, AWS::EMR::IdentifierTaken, AWS::ElasticBeanstalk::InvalidParameterError, AWS::Elasticache::IdentifierTaken, AWS::Elasticache::InvalidInstance, AWS::RDS::AuthorizationAlreadyExists, AWS::RDS::IdentifierTaken, DNS::Rackspace::CallbackError, MockNotImplemented, NotFound, NotImplemented, TimeoutError, HP::Errors::ServiceError, OpenStack::Errors::ServiceError, Ovirt::Errors::ServiceError, Rackspace::BlockStorage::IdentifierTaken, Rackspace::Errors::ServiceError, Service::Error, Vsphere::Errors::ServiceError, XenServer::InvalidLogin, XenServer::NotFound, XenServer::RequestFailed

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Object) verbose

Returns the value of attribute verbose



5
6
7
# File 'lib/fog/core/errors.rb', line 5

def verbose
  @verbose
end

Class Method Details

+ (Object) slurp(error, message = nil)



7
8
9
10
11
12
# File 'lib/fog/core/errors.rb', line 7

def self.slurp(error, message = nil)
  new_error = new(message)
  new_error.set_backtrace(error.backtrace)
  new_error.verbose = error.message
  new_error
end