Revision 2abf9522 ncclient/operations/rpc.py

b/ncclient/operations/rpc.py
113 113
class RPCError(OperationError): # raise it if you like
114 114

  
115 115
    """Represents an *<rpc-error>*. It is an instance of :exc:`OperationError`
116
    so it can be raised like any other exception."""
116
    and can be raised like any other exception."""
117 117

  
118 118
    def __init__(self, err_dict):
119 119
        self._dict = err_dict
......
124 124

  
125 125
    @property
126 126
    def type(self):
127
        "`string` represeting *error-type* element"
127
        "`string` representing text of *error-type* element"
128 128
        return self.get('error-type', None)
129 129

  
130 130
    @property
131 131
    def severity(self):
132
        "`string` represeting *error-severity* element"
132
        "`string` representing text of *error-severity* element"
133 133
        return self.get('error-severity', None)
134 134

  
135 135
    @property
136 136
    def tag(self):
137
        "`string` represeting *error-tag* element"
137
        "`string` representing text of *error-tag* element"
138 138
        return self.get('error-tag', None)
139 139

  
140 140
    @property
141 141
    def path(self):
142
        "`string` or :const:`None`; represeting *error-path* element"
142
        "`string` or :const:`None`; representing text of *error-path* element"
143 143
        return self.get('error-path', None)
144 144

  
145 145
    @property
146 146
    def message(self):
147
        "`string` or :const:`None`; represeting *error-message* element"
147
        "`string` or :const:`None`; representing text of *error-message* element"
148 148
        return self.get('error-message', None)
149 149

  
150 150
    @property
151 151
    def info(self):
152
        "`string` or :const:`None`, represeting *error-info* element"
152
        "`string` (XML) or :const:`None`, representing *error-info* element"
153 153
        return self.get('error-info', None)
154 154

  
155 155
    ## dictionary interface

Also available in: Unified diff