pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Classes | Functions | Variables
pyrax::exceptions Namespace Reference

Classes

class  PyraxException
class  AccessListIDNotFound
class  AuthenticationFailed
class  AuthorizationFailure
class  AuthSystemNotFound
class  CDNFailed
class  DNSCallTimedOut
class  DomainCreationFailed
class  DomainDeletionFailed
class  DomainRecordAdditionFailed
class  DomainRecordDeletionFailed
class  DomainRecordNotFound
class  DomainRecordNotUnique
class  DomainRecordUpdateFailed
class  DomainUpdateFailed
class  DuplicateUser
class  EndpointNotDefined
class  EndpointNotFound
class  EnvironmentNotFound
class  FlavorNotFound
class  FileNotFound
class  FolderNotFound
class  KeyringModuleNotInstalled
class  KeyringPasswordNotFound
class  KeyringUsernameMissing
class  IdentityClassNotDefined
class  InvalidCDNMetadata
class  InvalidConfigurationFile
class  InvalidCredentialFile
class  InvalidDateTimeString
class  InvalidDeviceType
class  InvalidLoadBalancer
class  InvalidLoadBalancerParameters
class  InvalidMonitoringCheckDetails
class  InvalidMonitoringCheckUpdate
class  InvalidMonitoringMetricsRequest
class  InvalidMonitoringMetricsResolution
class  InvalidNodeCondition
class  InvalidNodeParameters
class  InvalidPTRRecord
class  InvalidSessionPersistenceType
class  InvalidSetting
class  InvalidSize
class  InvalidTemporaryURLMethod
class  InvalidUploadID
class  InvalidVirtualIPType
class  InvalidVirtualIPVersion
class  InvalidVolumeResize
class  MissingAuthSettings
class  MissingDNSSettings
class  MissingHealthMonitorSettings
class  MissingLoadBalancerParameters
class  MissingMonitoringCheckDetails
class  MissingMonitoringCheckGranularity
class  MissingName
class  MissingTemporaryURLKey
class  MonitoringCheckTargetNotSpecified
class  MonitoringZonesPollMissing
class  NetworkCIDRInvalid
class  NetworkCIDRMalformed
class  NetworkCountExceeded
class  NetworkInUse
class  NetworkNotFound
class  NetworkLabelNotUnique
class  NoMoreResults
class  NoReloadError
class  NoSSLTerminationConfiguration
class  NoSuchContainer
class  NoSuchDatabase
class  NoSuchDatabaseUser
class  NoSuchObject
class  NotAuthenticated
class  NotCDNEnabled
class  NoTokenLookupException
class  PasswordChangeFailed
class  ProtocolMismatch
class  PTRRecordCreationFailed
class  PTRRecordDeletionFailed
class  PTRRecordUpdateFailed
class  ServiceNotAvailable
class  SnapshotNotAvailable
class  TenantNotFound
class  UnattachedNode
class  UnattachedVirtualIP
class  UnicodePathError
class  UploadFailed
class  UserNotFound
class  VolumeAttachmentFailed
class  VolumeDetachmentFailed
class  VolumeNotAvailable
class  AmbiguousEndpoints
 Found more than one matching endpoint in Service Catalog. More...
class  ClientException
 The base exception class for all exceptions this library raises. More...
class  BadRequest
 HTTP 400 - Bad request: you sent some malformed data. More...
class  Unauthorized
 HTTP 401 - Unauthorized: bad credentials. More...
class  Forbidden
 HTTP 403 - Forbidden: your credentials don't give you access to this resource. More...
class  NotFound
 HTTP 404 - Not found. More...
class  NoUniqueMatch
 HTTP 400 - Bad Request. More...
class  OverLimit
 HTTP 413 - Over limit: you're over the API limits for this time period. More...
class  HTTPNotImplemented
 HTTP 501 - Not Implemented: the server does not support this operation. More...

Functions

def from_response
 Return an instance of a ClientException or subclass based on an httplib2 response.

Variables

 ServerNotFound = _nova_exceptions.NotFound
 ServerClientException = _nova_exceptions.ClientException
tuple _code_map

Function Documentation

def pyrax.exceptions.from_response (   response,
  body 
)

Return an instance of a ClientException or subclass based on an httplib2 response.

Usage::

resp, body = http.request(...) if resp.status != 200: raise exception_from_response(resp, body)


Variable Documentation

tuple _code_map
Initial value:
00001 dict((c.http_status, c) for c in [BadRequest, Unauthorized,
00002         Forbidden, NotFound, OverLimit, HTTPNotImplemented])
ServerClientException = _nova_exceptions.ClientException
ServerNotFound = _nova_exceptions.NotFound
 All Classes Namespaces Files Functions Variables Properties