Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/lazr/restfulclient/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyc


BLc@s}dZeZddddddddd	d
ddd
dgZd
efdYZdefdYZdefdYZdefdYZdefdYZ	defdYZ
de
fdYZd
efdYZdefdYZ
defdYZdefdYZdefdYZd	efdYZde
fdYZdZdS(slazr.restfulclient errors.t
BadRequesttConflicttClientErrortCredentialsErrortCredentialsFileErrort	HTTPErrortMethodNotAllowedtNotFoundtPreconditionFailedtRestfulErrort
ResponseErrortServerErrortUnauthorizedtUnexpectedResponseErrorcBseZdZRS(s2Base error for the lazr.restfulclient API library.(t__name__t
__module__t__doc__(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyR	(scBseZdZRS(s&Base credentials/authentication error.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyR,scBseZdZRS(sError in credentials file.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyR0scBseZdZdZRS(sError in response.cCs#tj|||_||_dS(N(R	t__init__tresponsetcontent(tselfRR((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyR7s
	(RRRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyR
4scBseZdZdZRS(s$An unexpected response was received.cCsd|jj|jjfS(Ns%s: %s(Rtstatustreason(R((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyt__str__@s(RRRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyR
=scBseZdZdZRS(s+An HTTP non-2xx response code was received.cCsXdjgt|jjD]}d|^q}d|jj|jj||jfS(s9Show the error code, response headers, and response body.s
s%s: %ssIHTTP Error %s: %s
Response headers:
---
%s
---
Response body:
---
%s
---
(tjointsortedRtitemsRRR(Rtpairtheaders((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRGs	,(RRRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRDscBseZdZRS(s.An exception representing a client-side error.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRQscBseZdZRS(s4An exception representing an authentication failure.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRUscBseZdZRS(s1An exception representing a nonexistent resource.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRYscBseZdZRS(sAn exception raised when you use an unsupported HTTP method.

    This is most likely because you tried to delete a resource that
    can't be deleted.
    (RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyR]scBseZdZRS(s:An exception representing a problem with a client request.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRescBseZdZRS(s9An exception representing a conflict with another client.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRiscBseZdZRS(sAn exception representing the failure of a conditional PUT/PATCH.

    The most likely explanation is that another client changed this
    object while you were working on it, and your version of the
    object is now out of date.
    (RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRmscBseZdZRS(s.An exception representing a server-side error.(RRR(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyRuscCsitd6td6td6td6td6td6}|jddkrGdS|j|jt	}|t	kr|jdd	krt
}q|jdd
krt}qn|||S(sTurn an HTTP response into an HTTPError subclass.

    :return: None if the response code is 1xx, 2xx or 3xx. Otherwise,
    an instance of an appropriate HTTPError subclass (or HTTPError
    if nothing else is appropriate.
    iiiiiiidiiiN(RRRRRRRtNonetgetRRR(RRthttp_errors_by_status_codetcls((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyt	error_forys 
	N(Rttypet
__metaclass__t__all__t	ExceptionR	RRR
R
RRRRRRRRRR!(((s=/usr/lib/python2.7/dist-packages/lazr/restfulclient/errors.pyt<module>s<