o
    'yAfX  ใ                   @   sL  d d Z G dd deZG dd deZG dd deZG dd	 d	eZG d
d deZG dd deZG dd deZG dd deZ	G dd deZ
G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZG d$d% d%eZG d&d' d'eZG d(d) d)eZd*S )+c                 C   s   | S ฉNฉ )ฺxr   r   ๚0/usr/lib/python3.10/site-packages/ddns/errors.pyฺ<lambda>   s    r   c                   @   s"   e Zd ZdZedZdddZdS )ฺ	DDNSErrorz=
		Generic error class for all exceptions
		raised by DDNS.
	ฺErrorNc                 C   s
   || _ d S r   )ฺmessage)ฺselfr   r   r   r   ฺ__init__   s   
zDDNSError.__init__r   )ฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__ฺN_ฺreasonr
   r   r   r   r   r      s    r   c                   @   ๓   e Zd ZdZedZdS )ฺDDNSNetworkErrorz)
		Thrown when a network error occured.
	zNetwork errorNฉr   r   r   r   r   r   r   r   r   r   r   #   ๓    r   c                   @   r   )ฺDDNSAbuseErrorz=
		Thrown when the server reports
		abuse for this account.
	zKThe server denied processing the request because account abuse is suspectedNr   r   r   r   r   r   *   ๓    r   c                   @   r   )ฺDDNSAuthenticationErrorzB
		Thrown when the server did not
		accept the user credentials.
	z,Authentication against the server has failedNr   r   r   r   r   r   2   r   r   c                   @   r   )ฺDDNSBlockedErrorzx
		Thrown when the dynamic update client
		(specified by the user-agent) has been blocked
		by a dynamic DNS provider.
	z.The server denies any updates from this clientNr   r   r   r   r   r   :   s    r   c                   @   r   )ฺDDNSCertificateErrorz;
		Thrown when a server presented an invalid certificate.
	zInvalid certificateNr   r   r   r   r   r   C   r   r   c                   @   r   )ฺDDNSConfigurationErrorzV
		Thrown when invalid or insufficient
		data is provided by the configuration file.
	z!The configuration file has errorsNr   r   r   r   r   r   J   r   r   c                   @   r   )ฺDDNSConnectionRefusedErrorz)
		Thrown when a connection is refused.
	zConnection refusedNr   r   r   r   r   r   R   r   r   c                   @   r   )ฺDDNSConnectionTimeoutErrorz8
		Thrown when a connection to a server has timed out.
	zConnection timeoutNr   r   r   r   r   r   Y   r   r   c                   @   r   )ฺDDNSHostNotFoundErrorz<
		Thrown when a configuration entry could
		not be found.
	z5The host could not be found in the configuration fileNr   r   r   r   r   r   `   r   r   c                   @   r   )ฺDDNSInternalServerErrorzL
		Thrown when the remote server reported
		an error on the provider site.
	zInternal server errorNr   r   r   r   r   r   h   r   r   c                   @   r   )ฺDDNSNetworkUnreachableErrorz,
		Thrown when a network is not reachable.
	zNetwork unreachableNr   r   r   r   r   r   p   r   r   c                   @   r   )ฺDDNSNoRouteToHostErrorz-
		Thrown when there is no route to a host.
	zNo route to hostNr   r   r   r   r   r    w   r   r    c                   @   r   )ฺDDNSNotFoundz2
		Thrown when the called URL has not been found
	z	Not foundNr   r   r   r   r   r!   ~   r   r!   c                   @   r   )ฺDDNSRequestErrorz=
		Thrown when a request could
		not be properly performed.
	zRequest errorNr   r   r   r   r   r"      r   r"   c                   @   r   )ฺDDNSResolveErrorzO
		Thrown when a DNS record could not be resolved
		because of a local error.
	zCould not resolve DNS entryNr   r   r   r   r   r#      r   r#   c                   @   r   )ฺDDNSSSLErrorz<
		Raised when a SSL connection could not be
		negotiated.
	zSSL negotiation errorNr   r   r   r   r   r$      r   r$   c                   @   r   )ฺDDNSServiceUnavailableErrorz'
		Equivalent to HTTP error code 503.
	zService unavailableNr   r   r   r   r   r%      r   r%   c                   @   r   )ฺDDNSTooManyRequestsz+
		Raised when too many requests occured.
	zToo many requestsNr   r   r   r   r   r&   ค   r   r&   c                   @   r   )ฺDDNSUpdateErrorz=
		Thrown when an update could not be
		properly performed.
	z!The update could not be performedNr   r   r   r   r   r'   ซ   r   r'   N)r   ฺ	Exceptionr   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r   r   r   r   ฺ<module>   s*   	