/usr/lib/python3/dist-packages/pydap/exceptions.py is in python3-pydap 3.2.2+ds1-1ubuntu1.
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 | """DAP exceptions.
These exceptions are mostly used by the server. When an exception is captured,
proper error message is displayed (according to the DAP 2.0 spec), with
information about the exception.
"""
class DapError(Exception):
"""Base DAP exception."""
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class ClientError(DapError):
"""Generic error with the client."""
pass
class ServerError(DapError):
"""Generic error with the server."""
pass
class ConstraintExpressionError(ServerError):
"""Exception raised when an invalid constraint expression is given."""
pass
class HandlerError(DapError):
"""Generic error with a handler."""
pass
class ExtensionNotSupportedError(HandlerError):
"""Exception raised when opening a file not supported by any handlers."""
pass
class OpenFileError(HandlerError):
"""Exception raised when unable to open a file."""
pass
|