Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: module apiclient.errors</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 | <tr bgcolor="#7799ee"> |
| 8 | <td valign=bottom> <br> |
| 9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="apiclient.html"><font color="#ffffff">apiclient</font></a>.errors</strong></big></big></font></td |
| 10 | ><td align=right valign=bottom |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame^] | 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/apiary/apiclient/errors.py">/home/jcgregorio/projects/apiary/apiclient/errors.py</a></font></td></tr></table> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 12 | <p><tt>Errors for the library.<br> |
| 13 | <br> |
| 14 | All exceptions defined by the library<br> |
| 15 | should be defined in this file.</tt></p> |
| 16 | <p> |
| 17 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame^] | 18 | <tr bgcolor="#aa55cc"> |
| 19 | <td colspan=3 valign=bottom> <br> |
| 20 | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| 21 | |
| 22 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
| 23 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="simplejson.html">simplejson</a><br> |
| 24 | </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
| 25 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 26 | <tr bgcolor="#ee77aa"> |
| 27 | <td colspan=3 valign=bottom> <br> |
| 28 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| 29 | |
| 30 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| 31 | <td width="100%"><dl> |
| 32 | <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) |
| 33 | </font></dt><dd> |
| 34 | <dl> |
| 35 | <dt><font face="helvetica, arial"><a href="apiclient.errors.html#Error">Error</a> |
| 36 | </font></dt><dd> |
| 37 | <dl> |
| 38 | <dt><font face="helvetica, arial"><a href="apiclient.errors.html#HttpError">HttpError</a> |
| 39 | </font></dt><dt><font face="helvetica, arial"><a href="apiclient.errors.html#UnknownLinkType">UnknownLinkType</a> |
| 40 | </font></dt></dl> |
| 41 | </dd> |
| 42 | </dl> |
| 43 | </dd> |
| 44 | </dl> |
| 45 | <p> |
| 46 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 47 | <tr bgcolor="#ffc8d8"> |
| 48 | <td colspan=3 valign=bottom> <br> |
| 49 | <font color="#000000" face="helvetica, arial"><a name="Error">class <strong>Error</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> |
| 50 | |
| 51 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 52 | <td colspan=2><tt>Base error for this module.<br> </tt></td></tr> |
| 53 | <tr><td> </td> |
| 54 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 55 | <dd><a href="apiclient.errors.html#Error">Error</a></dd> |
| 56 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 57 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 58 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 59 | </dl> |
| 60 | <hr> |
| 61 | Data descriptors defined here:<br> |
| 62 | <dl><dt><strong>__weakref__</strong></dt> |
| 63 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 64 | </dl> |
| 65 | <hr> |
| 66 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 67 | <dl><dt><a name="Error-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> |
| 68 | |
| 69 | <hr> |
| 70 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 71 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Error-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> |
| 72 | |
| 73 | <hr> |
| 74 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 75 | <dl><dt><a name="Error-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 76 | |
| 77 | <dl><dt><a name="Error-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 78 | |
| 79 | <dl><dt><a name="Error-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 80 | |
| 81 | <dl><dt><a name="Error-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 82 | <br> |
| 83 | Use of negative indices is not supported.</tt></dd></dl> |
| 84 | |
| 85 | <dl><dt><a name="Error-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 86 | |
| 87 | <dl><dt><a name="Error-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> |
| 88 | |
| 89 | <dl><dt><a name="Error-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 90 | |
| 91 | <dl><dt><a name="Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 92 | |
| 93 | <dl><dt><a name="Error-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__str__">__str__</a>() <==> str(x)</tt></dd></dl> |
| 94 | |
| 95 | <dl><dt><a name="Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 96 | |
| 97 | <hr> |
| 98 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 99 | <dl><dt><strong>__dict__</strong></dt> |
| 100 | </dl> |
| 101 | <dl><dt><strong>args</strong></dt> |
| 102 | </dl> |
| 103 | <dl><dt><strong>message</strong></dt> |
| 104 | </dl> |
| 105 | </td></tr></table> <p> |
| 106 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 107 | <tr bgcolor="#ffc8d8"> |
| 108 | <td colspan=3 valign=bottom> <br> |
| 109 | <font color="#000000" face="helvetica, arial"><a name="HttpError">class <strong>HttpError</strong></a>(<a href="apiclient.errors.html#Error">Error</a>)</font></td></tr> |
| 110 | |
| 111 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 112 | <td colspan=2><tt>HTTP data was invalid or unexpected.<br> </tt></td></tr> |
| 113 | <tr><td> </td> |
| 114 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 115 | <dd><a href="apiclient.errors.html#HttpError">HttpError</a></dd> |
| 116 | <dd><a href="apiclient.errors.html#Error">Error</a></dd> |
| 117 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 118 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 119 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 120 | </dl> |
| 121 | <hr> |
| 122 | Methods defined here:<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame^] | 123 | <dl><dt><a name="HttpError-__init__"><strong>__init__</strong></a>(self, resp, content)</dt></dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 124 | |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame^] | 125 | <dl><dt><a name="HttpError-__repr__"><strong>__repr__</strong></a>(self)</dt></dl> |
| 126 | |
| 127 | <dl><dt><a name="HttpError-__str__"><strong>__str__</strong></a> = <a href="#HttpError-__repr__">__repr__</a>(self)</dt></dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 128 | |
| 129 | <hr> |
| 130 | Data descriptors inherited from <a href="apiclient.errors.html#Error">Error</a>:<br> |
| 131 | <dl><dt><strong>__weakref__</strong></dt> |
| 132 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 133 | </dl> |
| 134 | <hr> |
| 135 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 136 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#HttpError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> |
| 137 | |
| 138 | <hr> |
| 139 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 140 | <dl><dt><a name="HttpError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 141 | |
| 142 | <dl><dt><a name="HttpError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 143 | |
| 144 | <dl><dt><a name="HttpError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 145 | |
| 146 | <dl><dt><a name="HttpError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 147 | <br> |
| 148 | Use of negative indices is not supported.</tt></dd></dl> |
| 149 | |
| 150 | <dl><dt><a name="HttpError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 151 | |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 152 | <dl><dt><a name="HttpError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 153 | |
| 154 | <dl><dt><a name="HttpError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 155 | |
| 156 | <dl><dt><a name="HttpError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 157 | |
| 158 | <hr> |
| 159 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 160 | <dl><dt><strong>__dict__</strong></dt> |
| 161 | </dl> |
| 162 | <dl><dt><strong>args</strong></dt> |
| 163 | </dl> |
| 164 | <dl><dt><strong>message</strong></dt> |
| 165 | </dl> |
| 166 | </td></tr></table> <p> |
| 167 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 168 | <tr bgcolor="#ffc8d8"> |
| 169 | <td colspan=3 valign=bottom> <br> |
| 170 | <font color="#000000" face="helvetica, arial"><a name="UnknownLinkType">class <strong>UnknownLinkType</strong></a>(<a href="apiclient.errors.html#Error">Error</a>)</font></td></tr> |
| 171 | |
| 172 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 173 | <td colspan=2><tt>Link type unknown or unexpected.<br> </tt></td></tr> |
| 174 | <tr><td> </td> |
| 175 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 176 | <dd><a href="apiclient.errors.html#UnknownLinkType">UnknownLinkType</a></dd> |
| 177 | <dd><a href="apiclient.errors.html#Error">Error</a></dd> |
| 178 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 179 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 180 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 181 | </dl> |
| 182 | <hr> |
| 183 | Data descriptors inherited from <a href="apiclient.errors.html#Error">Error</a>:<br> |
| 184 | <dl><dt><strong>__weakref__</strong></dt> |
| 185 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 186 | </dl> |
| 187 | <hr> |
| 188 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 189 | <dl><dt><a name="UnknownLinkType-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> |
| 190 | |
| 191 | <hr> |
| 192 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 193 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#UnknownLinkType-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> |
| 194 | |
| 195 | <hr> |
| 196 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 197 | <dl><dt><a name="UnknownLinkType-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 198 | |
| 199 | <dl><dt><a name="UnknownLinkType-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 200 | |
| 201 | <dl><dt><a name="UnknownLinkType-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 202 | |
| 203 | <dl><dt><a name="UnknownLinkType-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 204 | <br> |
| 205 | Use of negative indices is not supported.</tt></dd></dl> |
| 206 | |
| 207 | <dl><dt><a name="UnknownLinkType-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 208 | |
| 209 | <dl><dt><a name="UnknownLinkType-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> |
| 210 | |
| 211 | <dl><dt><a name="UnknownLinkType-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 212 | |
| 213 | <dl><dt><a name="UnknownLinkType-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 214 | |
| 215 | <dl><dt><a name="UnknownLinkType-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#UnknownLinkType-__str__">__str__</a>() <==> str(x)</tt></dd></dl> |
| 216 | |
| 217 | <dl><dt><a name="UnknownLinkType-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 218 | |
| 219 | <hr> |
| 220 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 221 | <dl><dt><strong>__dict__</strong></dt> |
| 222 | </dl> |
| 223 | <dl><dt><strong>args</strong></dt> |
| 224 | </dl> |
| 225 | <dl><dt><strong>message</strong></dt> |
| 226 | </dl> |
| 227 | </td></tr></table></td></tr></table><p> |
| 228 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 229 | <tr bgcolor="#55aa55"> |
| 230 | <td colspan=3 valign=bottom> <br> |
| 231 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 232 | |
| 233 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
| 234 | <td width="100%"><strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p> |
| 235 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 236 | <tr bgcolor="#7799ee"> |
| 237 | <td colspan=3 valign=bottom> <br> |
| 238 | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> |
| 239 | |
| 240 | <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> |
| 241 | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> |
| 242 | </body></html> |