DALProtocolError¶
-
exception
pyvo.dal.query.
DALProtocolError
(reason=None, cause=None, url=None, protocol=None, version=None)[source]¶ a base exception indicating that a DAL service responded in an erroneous way. This can be either an HTTP protocol error or a response format error; both of these are handled by separate subclasses. This base class captures an underlying exception clause.
initialize with a string message and an optional HTTP response code
Parameters: reason : str
a message describing the cause of the error
code : int
the HTTP error code (as an integer)
cause : str
an exception issued as the underlying cause. A value of None indicates that no underlying exception was caught.
url : str
the query URL that produced the error
protocol : str
the label indicating the type service that produced the error
version : str
version of the protocol of the service that produced the error