Sha256: 31febb20859513ac4a85855f1c6c89ee61940ce1358aac5c410e7a173a0b6d5c

Contents?: true

Size: 1.93 KB

Versions: 9

Compression:

Stored size: 1.93 KB

Contents

# The deprecated old exception types.  Will go away in a couple of releases.

class SyntaxException             < StandardError # :nodoc:
end
class ConnectionException         < StandardError # :nodoc:
end
class AuthenticationException     < StandardError # :nodoc:
end
class InvalidResponseException    < StandardError # :nodoc:
end
class NonEmptyContainerException  < StandardError # :nodoc:
end
class NoSuchObjectException       < StandardError # :nodoc:
end
class NoSuchContainerException    < StandardError # :nodoc:
end
class NoSuchAccountException      < StandardError # :nodoc:
end
class MisMatchedChecksumException < StandardError # :nodoc:
end
class IOException                 < StandardError # :nodoc:
end
class CDNNotEnabledException      < StandardError # :nodoc:
end
class ObjectExistsException       < StandardError # :nodoc:
end
class ExpiredAuthTokenException   < StandardError # :nodoc:
end

# The new properly scoped exceptions.

module CloudFiles
  class Exception

    class Syntax             < SyntaxException
    end
    class Connection         < ConnectionException # :nodoc:
    end
    class Authentication     < AuthenticationException # :nodoc:
    end
    class InvalidResponse    < InvalidResponseException # :nodoc:
    end
    class NonEmptyContainer  < NonEmptyContainerException # :nodoc:
    end
    class NoSuchObject       < NoSuchObjectException # :nodoc:
    end
    class NoSuchContainer    < NoSuchContainerException # :nodoc:
    end
    class NoSuchAccount      < NoSuchAccountException # :nodoc:
    end
    class MisMatchedChecksum < MisMatchedChecksumException # :nodoc:
    end
    class IO                 < IOException # :nodoc:
    end
    class CDNNotEnabled      < CDNNotEnabledException # :nodoc:
    end
    class ObjectExists       < ObjectExistsException # :nodoc:
    end
    class ExpiredAuthToken   < ExpiredAuthTokenException # :nodoc:
    end
    class CDNNotAvailable    < StandardError
    end
    
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
cloudfiles-1.5.0.3 lib/cloudfiles/exception.rb
cloudfiles-1.5.0.2 lib/cloudfiles/exception.rb
cloudfiles-sagamore-1.5.0.1 lib/cloudfiles/exception.rb
cloudfiles-sonian-1.5.0.2 lib/cloudfiles/exception.rb
cloudfiles-1.5.0.1 lib/cloudfiles/exception.rb
cloudfiles-1.5.0 lib/cloudfiles/exception.rb
cloudfiles-1.4.18 lib/cloudfiles/exception.rb
cloudfiles-1.4.17 lib/cloudfiles/exception.rb
cloudfiles-1.4.16 lib/cloudfiles/exception.rb