astropy.samp.errors のソースコード
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Defines custom errors and exceptions used in `astropy.samp`.
"""
import xmlrpc.client as xmlrpc
from astropy.utils.exceptions import AstropyUserWarning
__all__ = ['SAMPWarning', 'SAMPHubError', 'SAMPClientError', 'SAMPProxyError']
[ドキュメント]class SAMPWarning(AstropyUserWarning):
"""
SAMP-specific Astropy warning class
"""
[ドキュメント]class SAMPHubError(Exception):
"""
SAMP Hub exception.
"""
[ドキュメント]class SAMPClientError(Exception):
"""
SAMP Client exceptions.
"""
[ドキュメント]class SAMPProxyError(xmlrpc.Fault):
"""
SAMP Proxy Hub exception
"""