This file is indexed.

/usr/share/pyshared/cloudfiles/errors.py is in python-cloudfiles 1.7.9.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
"""
exception classes

See COPYING for license information.
"""

class Error(StandardError):
    """
    Base class for all errors and exceptions
    """
    pass


class ResponseError(Error):
    """
    Raised when the remote service returns an error.
    """
    def __init__(self, status, reason):
        self.status = status
        self.reason = reason
        Error.__init__(self)

    def __str__(self):
        return '%d: %s' % (self.status, self.reason)

    def __repr__(self):
        return '%d: %s' % (self.status, self.reason)


class NoSuchContainer(Error):
    """
    Raised on a non-existent Container.
    """
    pass


class NoSuchObject(Error):
    """
    Raised on a non-existent Object.
    """
    pass


class ContainerNotEmpty(Error):
    """
    Raised when attempting to delete a Container that still contains Objects.
    """
    def __init__(self, container_name):
        self.container_name = container_name
        Error.__init__(self)

    def __str__(self):
        return "Cannot delete non-empty Container %s" % self.container_name

    def __repr__(self):
        return "%s(%s)" % (self.__class__.__name__, self.container_name)


class InvalidContainerName(Error):
    """
    Raised for invalid storage container names.
    """
    pass


class InvalidObjectName(Error):
    """
    Raised for invalid storage object names.
    """
    pass


class InvalidMetaName(Error):
    """
    Raised for invalid metadata names.
    """
    pass


class InvalidMetaValue(Error):
    """
    Raised for invalid metadata value.
    """
    pass


class InvalidUrl(Error):
    """
    Not a valid url for use with this software.
    """
    pass


class InvalidObjectSize(Error):
    """
    Not a valid storage_object size attribute.
    """
    pass


class IncompleteSend(Error):
    """
    Raised when there is a insufficient amount of data to send.
    """
    pass


class ContainerNotPublic(Error):
    """
    Raised when public features of a non-public container are accessed.
    """
    pass


class CDNNotEnabled(Error):
    """
    CDN is not enabled for this account.
    """
    pass


class AuthenticationFailed(Error):
    """
    Raised on a failure to authenticate.
    """
    pass


class AuthenticationError(Error):
    """
    Raised when an unspecified authentication error has occurred.
    """
    pass