HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/thread-self/root/usr/lib/python3.9/site-packages/ipalib/__pycache__/errors.cpython-39.pyc
a

}�fe��@s�dZddlZddlmZddlmZGdd�de�ZGdd�de�Z	Gd	d
�d
e�Z
Gdd�de�ZGd
d�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZgZdd�ZGdd�de�ZGdd�de�ZGdd �d e�ZGd!d"�d"e�ZGd#d$�d$e�ZGd%d&�d&e�ZGd'd(�d(e�ZGd)d*�d*e�ZGd+d,�d,e�ZGd-d.�d.e�ZGd/d0�d0e�ZGd1d2�d2e�ZGd3d4�d4e�Z Gd5d6�d6e�Z!Gd7d8�d8e�Z"Gd9d:�d:e"�Z#Gd;d<�d<e#�Z$Gd=d>�d>e#�Z%Gd?d@�d@e#�Z&GdAdB�dBe#�Z'GdCdD�dDe#�Z(GdEdF�dFe#�Z)GdGdH�dHe#�Z*GdIdJ�dJe"�Z+GdKdL�dLe+�Z,GdMdN�dNe,�Z-GdOdP�dPe+�Z.GdQdR�dRe+�Z/GdSdT�dTe�Z0GdUdV�dVe0�Z1GdWdX�dXe�Z2GdYdZ�dZe2�Z3Gd[d\�d\e2�Z4Gd]d^�d^e2�Z5Gd_d`�d`e2�Z6Gdadb�dbe2�Z7Gdcdd�dde2�Z8Gdedf�dfe2�Z9Gdgdh�dhe2�Z:Gdidj�dje2�Z;Gdkdl�dle2�Z<Gdmdn�dne2�Z=Gdodp�dpe2�Z>Gdqdr�dre2�Z?Gdsdt�dte2�Z@Gdudv�dve2�ZAGdwdx�dxe2�ZBGdydz�dze�ZCGd{d|�d|eC�ZDGd}d~�d~eC�ZEGdd��d�eC�ZFGd�d��d�eC�ZGGd�d��d�eC�ZHGd�d��d�eC�ZIGd�d��d�eC�ZJGd�d��d�eC�ZKGd�d��d�eC�ZLGd�d��d�eC�ZMGd�d��d�eC�ZNGd�d��d�eC�ZOGd�d��d�eC�ZPGd�d��d�eC�ZQGd�d��d�eC�ZRGd�d��d�eC�ZSGd�d��d�eC�ZTGd�d��d�eC�ZUGd�d��d�eC�ZVGd�d��d�eC�ZWGd�d��d�eC�ZXGd�d��d�eC�ZYGd�d��d�eC�ZZGd�d��d�eC�Z[Gd�d��d�eC�Z\Gd�d��d�eC�Z]Gd�d��d�eC�Z^Gd�d��d�eC�Z_Gd�d��d�eC�Z`Gd�d��d�eD�ZaGd�d��d�eC�ZbGd�d��d�eC�ZcGd�d��d�eC�ZdGd�d��d�eS�ZeGd�d��d�e]�ZfGd�d„d�eC�ZgGd�dĄd�eC�ZhGd�dƄd�eC�ZiGd�dȄd�ei�ZjGd�dʄd�eC�ZkGd�d̄d�eC�ZlGd�d΄d�eC�ZmGd�dЄd�eC�ZnGd�d҄d�eC�ZoGd�dԄd�eC�ZpGd�dքd�eC�ZqGd�d؄d�eC�ZrGd�dڄd�eC�ZsGd�d܄d�eC�ZtGd�dބd�eC�ZuGd�d�d�en�ZvGd�d�d�en�ZwGd�d�d�eo�ZxGd�d�d�eo�ZyGd�d�d�eo�ZzGd�d�d�eC�Z{Gd�d�d�e{�Z|Gd�d�d�e{�Z}Gd�d�d�eC�Z~Gd�d�d�eC�ZGd�d�d�eC�Z�Gd�d��d�eC�Z�Gd�d��d�eC�Z�Gd�d��d�eC�Z�Gd�d��d�eC�Z�Gd�d��d�e{�Z�Gd��d��deC�Z�G�d�d��deC�Z�G�d�d��de��Z�G�d�d��de��Z�G�d�d��de��Z�G�d	�d
��d
eC�Z�G�d�d��de��Z�G�d
�d��de�Z�e�e�e��e��e��d�d��d��Z�e��d�d�e�D��Z�e��dk�r�e���de��dS(a�

Custom exception classes (some which are RPC transparent).

`PrivateError` and its subclasses are custom IPA excetions that will *never* be
forwarded in a Remote Procedure Call (RPC) response.

On the other hand, `PublicError` and its subclasses can be forwarded in an RPC
response.  These public errors each carry a unique integer error code as well as
a gettext translated error message (translated at the time the exception is
raised).  The purpose of the public errors is to relay information about
*expected* user errors, service availability errors, and so on.  They should
*never* be used for *unexpected* programmatic or run-time errors.

For security reasons it is *extremely* important that arbitrary exceptions *not*
be forwarded in an RPC response.  Unexpected exceptions can easily contain
compromising information in their error messages.  Any time the server catches
any exception that isn't a `PublicError` subclass, it should raise an
`InternalError`, which itself always has the same, static error message (and
therefore cannot be populated with information about the true exception).

The public errors are arranging into five main blocks of error code ranges:

    =============  ========================================
     Error codes                 Exceptions
    =============  ========================================
    1000 - 1999    `AuthenticationError` and its subclasses
    2000 - 2999    `AuthorizationError` and its subclasses
    3000 - 3999    `InvocationError` and its subclasses
    4000 - 4999    `ExecutionError` and its subclasses
    5000 - 5999    `GenericError` and its subclasses
    =============  ========================================

Within these five blocks some sub-ranges are already allocated for certain types
of error messages, while others are reserved for future use.  Here are the
current block assignments:

    - **900-5999** `PublicError` and its subclasses

        - **901 - 907**  Assigned to special top-level public errors

        - **908 - 999**  *Reserved for future use*

        - **1000 - 1999**  `AuthenticationError` and its subclasses

            - **1001 - 1099**  Open for general authentication errors

            - **1100 - 1199**  `KerberosError` and its subclasses

            - **1200 - 1299**  `SessionError` and its subclasses

            - **1300 - 1999**  *Reserved for future use*

        - **2000 - 2999**  `AuthorizationError` and its subclasses

            - **2001 - 2099**  Open for general authorization errors

            - **2100 - 2199**  `ACIError` and its subclasses

            - **2200 - 2999**  *Reserved for future use*

        - **3000 - 3999**  `InvocationError` and its subclasses

            - **3001 - 3099**  Open for general invocation errors

            - **3100 - 3199**  *Reserved for future use*

        - **4000 - 4999**  `ExecutionError` and its subclasses

            - **4001 - 4099**  Open for general execution errors

            - **4100 - 4199**  `BuiltinError` and its subclasses

            - **4200 - 4299**  `LDAPError` and its subclasses

            - **4300 - 4399**  `CertificateError` and its subclasses

            - **4400 - 4499**  `DNSError` and (some of) its subclasses

            - **4500 - 4999**  *Reserved for future use*

        - **5000 - 5999**  `GenericError` and its subclasses

            - **5001 - 5099**  Open for generic errors

            - **5100 - 5999**  *Reserved for future use*
�N)�ngettext)�messagesc@s.eZdZdZdZdd�Zejr*edd��Z	dS)�PrivateErrorzR
    Base class for exceptions that are *never* forwarded in an RPC response.
    �cKsb|j||_||_|��D]4\}}t||�rBJd|jj||f��t|||�qt�	||j�dS)Nzconflicting kwarg %s.%s = %r)
�format�msg�kw�items�hasattr�	__class__�__name__�setattr�	Exception�__init__)�selfr�key�value�r�1/usr/lib/python3.9/site-packages/ipalib/errors.pyrxs
�zPrivateError.__init__cCst|�S�N��str�rrrr�message�szPrivateError.messageN)
r�
__module__�__qualname__�__doc__rr�six�PY3�propertyrrrrrrqs
rc@seZdZdZdZdS)�SubprocessErrora�
    Raised when ``subprocess.call()`` returns a non-zero exit status.

    This custom exception is needed because Python 2.4 doesn't have the
    ``subprocess.CalledProcessError`` exception (which was added in Python 2.5).

    For example:

    >>> raise SubprocessError(returncode=2, argv=('ls', '-lh', '/no-foo/'))
    Traceback (most recent call last):
      ...
    SubprocessError: return code 2 from ('ls', '-lh', '/no-foo/')

    The exit code of the sub-process is available via the ``returncode``
    instance attribute.  For example:

    >>> e = SubprocessError(returncode=1, argv=('/bin/false',))
    >>> e.returncode
    1
    >>> e.argv  # argv is also available
    ('/bin/false',)
    z(return code %(returncode)d from %(argv)rN�rrrrrrrrrr �sr c@seZdZdZdZdS)�PluginSubclassErrora"
    Raised when a plugin doesn't subclass from an allowed base.

    For example:

    >>> raise PluginSubclassError(plugin='bad', bases=('base1', 'base2'))
    Traceback (most recent call last):
      ...
    PluginSubclassError: 'bad' not subclass of any base in ('base1', 'base2')

    z0%(plugin)r not subclass of any base in %(bases)rNr!rrrrr"�sr"c@seZdZdZdZdS)�PluginDuplicateErrora
    Raised when the same plugin class is registered more than once.

    For example:

    >>> raise PluginDuplicateError(plugin='my_plugin')
    Traceback (most recent call last):
      ...
    PluginDuplicateError: 'my_plugin' was already registered
    z!%(plugin)r was already registeredNr!rrrrr#�sr#c@seZdZdZdZdS)�PluginOverrideErrora.
    Raised when a plugin overrides another without using ``override=True``.

    For example:

    >>> raise PluginOverrideError(base='Command', name='env', plugin='my_env')
    Traceback (most recent call last):
      ...
    PluginOverrideError: unexpected override of Command.env with 'my_env'
    z8unexpected override of %(base)s.%(name)s with %(plugin)rNr!rrrrr$�sr$c@seZdZdZdZdS)�PluginMissingOverrideErroraB
    Raised when a plugin overrides another that has not been registered.

    For example:

    >>> raise PluginMissingOverrideError(base='Command', name='env', plugin='my_env')
    Traceback (most recent call last):
      ...
    PluginMissingOverrideError: Command.env not registered, cannot override with 'my_env'
    zA%(base)s.%(name)s not registered, cannot override with %(plugin)rNr!rrrrr%�sr%c@seZdZdZdZdS)�SkipPluginModulez9
    Raised to abort the loading of a plugin module.
    �
%(reason)sNr!rrrrr&�sr&c@seZdZdZdZdS)�PluginsPackageErrorzO
    Raised when ``package.plugins`` is a module instead of a sub-package.
    z2%(name)s must be sub-package, not module: %(file)rNr!rrrrr(�sr(c@seZdZdZdZdS)�PluginModuleErrorz<
    Raised when a module is not a valid plugin module.
    z%%(name)s is not a valid plugin moduleNr!rrrrr)�sr)c@seZdZdZdZdS)�KrbPrincipalWrongFASTzH
    Raised when it is not possible to use our FAST armor for kinit
    z9%(principal)s cannot use Anonymous PKINIT as a FAST armorNr!rrrrr*�sr*cCst�|�|Sr)�_texts�append)rrrr�_s
r-cs@eZdZdZd	�fdd�	ZdZdZdZej	r8e
dd��Z�ZS)
�PublicErrorzU
    **900** Base class for exceptions that can be forwarded in an RPC response.
    Ncs,tj|||fi|��tt|��|j�dSr)rZprocess_message_arguments�superr.rr)rrrr�rrrrszPublicError.__init__i��cCst|�SrrrrrrrszPublicError.message)NN)
rrrrr�errno�rvalrrrrr�
__classcell__rrr0rr.sr.c@seZdZdZdZed�ZdS)�VersionErrora/
    **901** Raised when client and server versions are incompatible.

    For example:

    >>> raise VersionError(cver='2.0', sver='2.1', server='https://localhost')
    Traceback (most recent call last):
      ...
    VersionError: 2.0 client incompatible with 2.1 server at 'https://localhost'

    i�zA%(cver)s client incompatible with %(sver)s server at '%(server)s'N�rrrrr2r-rrrrrr5sr5c@seZdZdZdZed�ZdS)�UnknownErrora)
    **902** Raised when client does not know error it caught from server.

    For example:

    >>> raise UnknownError(code=57, server='localhost', error=u'a new error')
    ...
    Traceback (most recent call last):
      ...
    UnknownError: unknown error 57 from localhost: a new error

    i�z1unknown error %(code)d from %(server)s: %(error)sNr6rrrrr7+s
r7c@s&eZdZdZdZed�Zddd�ZdS)�
InternalErrorz�
    **903** Raised to conceal a non-public exception.

    For example:

    >>> raise InternalError()
    Traceback (most recent call last):
      ...
    InternalError: an internal error has occurred
    i�zan internal error has occurredNcCst�|�dS)zN
        Security issue: ignore any information given to constructor.
        N)r.r)rrrrrrLszInternalError.__init__)N)rrrrr2r-rrrrrrr8=sr8c@seZdZdZdZed�ZdS)�ServerInternalErrora'
    **904** Raised when client catches an `InternalError` from server.

    For example:

    >>> raise ServerInternalError(server='https://localhost')
    Traceback (most recent call last):
      ...
    ServerInternalError: an internal error has occurred on server at 'https://localhost'
    i�z8an internal error has occurred on server at '%(server)s'Nr6rrrrr9Ssr9c@seZdZdZdZed�ZdS)�CommandErrorz�
    **905** Raised when an unknown command is called.

    For example:

    >>> raise CommandError(name='foobar')
    Traceback (most recent call last):
      ...
    CommandError: unknown command 'foobar'
    i�zunknown command '%(name)s'Nr6rrrrr:csr:c@seZdZdZdZed�ZdS)�ServerCommandErroraW
    **906** Raised when client catches a `CommandError` from server.

    For example:

    >>> e = CommandError(name='foobar')
    >>> raise ServerCommandError(error=str(e), server='https://localhost')
    Traceback (most recent call last):
      ...
    ServerCommandError: error on server 'https://localhost': unknown command 'foobar'
    i��'error on server '%(server)s': %(error)sNr6rrrrr;ssr;c@seZdZdZdZed�ZdS)�NetworkErrora/
    **907** Raised when a network connection cannot be created.

    For example:

    >>> raise NetworkError(uri='ldap://localhost:389', error=_(u'Connection refused'))
    Traceback (most recent call last):
      ...
    NetworkError: cannot connect to 'ldap://localhost:389': Connection refused
    i�z&cannot connect to '%(uri)s': %(error)sNr6rrrrr=�sr=c@seZdZdZdZed�ZdS)�ServerNetworkErrorzJ
    **908** Raised when client catches a `NetworkError` from server.
    i�r<Nr6rrrrr>�sr>c@seZdZdZdZed�ZdS)�	JSONErrorzK
    **909** Raised when server received a malformed JSON-RPC request.
    i�z#Invalid JSON-RPC request: %(error)sNr6rrrrr?�sr?c@seZdZdZdZed�ZdS)�XMLRPCMarshallErrora8
    **910** Raised when the XML-RPC lib cannot marshall the request

    For example:

    >>> raise XMLRPCMarshallError(error=_('int exceeds XML-RPC limits'))
    Traceback (most recent call last):
      ...
    XMLRPCMarshallError: error marshalling data for XML-RPC transport: int exceeds XML-RPC limits
    i�z7error marshalling data for XML-RPC transport: %(error)sNr6rrrrr@�sr@c@seZdZdZdZed�ZdS)�RefererErrorz�
    **911** Raised when the request does not contain an HTTP referer

    For example:

    >>> raise RefererError(referer='referer')
    Traceback (most recent call last):
      ...
    RefererError: Missing or invalid HTTP Referer, referer
    i�z,Missing or invalid HTTP Referer, %(referer)sNr6rrrrrA�srAc@seZdZdZdZdS)�EnvironmentErrorzS
    **912** Raised when a command is called with invalid environment settings
    i�N�rrrrr2rrrrrB�srBc@seZdZdZdZed�ZdS)�SystemEncodingErrorz:
    **913** Raised when system encoding is not UTF-8
    i�zzSystem encoding must be UTF-8, '%(encoding)s' is not supported. Set LC_ALL="C.UTF-8", or LC_ALL="" and LC_CTYPE="C.UTF-8".Nr6rrrrrD�s
�rDc@seZdZdZdZdS)�AuthenticationErrorzH
    **1000** Base class for authentication errors (*1000 - 1999*).
    i�NrCrrrrrE�srEc@seZdZdZdZed�ZdS)�
KerberosErrora�
    **1100** Base class for Kerberos authentication errors (*1100 - 1199*).

    For example:

    >>> raise KerberosError(major=_('Unspecified GSS failure.  Minor code may provide more information'), minor=_('No credentials cache found'))
    Traceback (most recent call last):
      ...
    KerberosError: Kerberos error: Unspecified GSS failure.  Minor code may provide more information/No credentials cache found

    iLz#Kerberos error: %(major)s/%(minor)sNr6rrrrrF�srFc@seZdZdZdZed�ZdS)�CCacheErrorz�
    **1101** Raised when sever does not receive Kerberose credentials.

    For example:

    >>> raise CCacheError()
    Traceback (most recent call last):
      ...
    CCacheError: did not receive Kerberos credentials

    iMz$did not receive Kerberos credentialsNr6rrrrrG�srGc@seZdZdZdZed�ZdS)�ServiceErrora
    **1102** Raised when service is not found in Kerberos DB.

    For example:

    >>> raise ServiceError(service='HTTP@localhost')
    Traceback (most recent call last):
      ...
    ServiceError: Service 'HTTP@localhost' not found in Kerberos database
    iNz4Service '%(service)s' not found in Kerberos databaseNr6rrrrrHsrHc@seZdZdZdZed�ZdS)�
NoCCacheErrorz�
    **1103** Raised when a client attempts to use Kerberos without a ccache.

    For example:

    >>> raise NoCCacheError()
    Traceback (most recent call last):
      ...
    NoCCacheError: No credentials cache found
    iOzNo credentials cache foundNr6rrrrrIsrIc@seZdZdZdZed�ZdS)�
TicketExpiredz�
    **1104** Raised when a client attempts to use an expired ticket

    For example:

    >>> raise TicketExpired()
    Traceback (most recent call last):
      ...
    TicketExpired: Ticket expired
    iPzTicket expiredNr6rrrrrJ%srJc@seZdZdZdZed�ZdS)�BadCCachePermsz�
    **1105** Raised when a client has bad permissions on their ccache

    For example:

    >>> raise BadCCachePerms()
    Traceback (most recent call last):
      ...
    BadCCachePerms: Credentials cache permissions incorrect
    iQz'Credentials cache permissions incorrectNr6rrrrrK5srKc@seZdZdZdZed�ZdS)�BadCCacheFormatz�
    **1106** Raised when a client has a misformated ccache

    For example:

    >>> raise BadCCacheFormat()
    Traceback (most recent call last):
      ...
    BadCCacheFormat: Bad format in credentials cache
    iRzBad format in credentials cacheNr6rrrrrLEsrLc@seZdZdZdZed�ZdS)�CannotResolveKDCz�
    **1107** Raised when the KDC can't be resolved

    For example:

    >>> raise CannotResolveKDC()
    Traceback (most recent call last):
      ...
    CannotResolveKDC: Cannot resolve KDC for requested realm
    iSz&Cannot resolve KDC for requested realmNr6rrrrrMUsrMc@seZdZdZdZed�ZdS)�SessionErrorzT
    **1200** Base class for Session errors (*1200 - 1299*).

    For example:

    i�z
Session errorNr6rrrrrNesrNc@seZdZdZdZed�ZdS)�InvalidSessionPasswordzF
    **1201** Raised when we cannot obtain a TGT for a principal.
    i�z<Principal %(principal)s cannot be authenticated: %(message)sNr6rrrrrOqsrOc@seZdZdZdZdS)�PasswordExpiredzf
    **1202** Raised when we cannot obtain a TGT for a principal because the password is expired.
    i�NrCrrrrrPxsrPc@seZdZdZdZdS)�KrbPrincipalExpiredz=
    **1203** Raised when Kerberos Principal is expired.
    i�NrCrrrrrQ~srQc@seZdZdZdZdS)�
UserLockedz8
    **1204** Raised when a user account is locked.
    i�NrCrrrrrR�srRc@seZdZdZdZdS)�AuthorizationErrorzG
    **2000** Base class for authorization errors (*2000 - 2999*).
    i�NrCrrrrrS�srSc@seZdZdZdZed�ZdS)�ACIErrorzK
    **2100** Base class for ACI authorization errors (*2100 - 2199*).
    i4zInsufficient access: %(info)sNr6rrrrrT�srTc@seZdZdZdZdS)�InvocationErrorzL
    **3000** Base class for command invocation errors (*3000 - 3999*).
    i�NrCrrrrrU�srUc@seZdZdZdZdS)�
EncodingErrorzD
    **3001** Raised when received text is incorrectly encoded.
    i�NrCrrrrrV�srVc@seZdZdZdZdS)�BinaryEncodingErrorzK
    **3002** Raised when received binary data is incorrectly encoded.
    i�NrCrrrrrW�srWc@seZdZdZdZed�ZdS)�ZeroArgumentErrorz�
    **3003** Raised when a command is called with arguments but takes none.

    For example:

    >>> raise ZeroArgumentError(name='ping')
    Traceback (most recent call last):
      ...
    ZeroArgumentError: command 'ping' takes no arguments
    i�z%command '%(name)s' takes no argumentsNr6rrrrrX�srXc@seZdZdZdZddd�ZdS)�MaxArgumentErrora
    **3004** Raised when a command is called with too many arguments.

    For example:

    >>> raise MaxArgumentError(name='user_add', count=2)
    Traceback (most recent call last):
      ...
    MaxArgumentError: command 'user_add' takes at most 2 arguments
    i�NcKs8|durtdd|d�}nd}tj|||fi|��dS)Nz3command '%(name)s' takes at most %(count)d argumentz4command '%(name)s' takes at most %(count)d arguments�count)�	ungettextrUr)rrrrrrrr�s�zMaxArgumentError.__init__)N)rrrrr2rrrrrrY�srYc@seZdZdZdZdS)�OptionErrorzH
    **3005** Raised when a command is called with unknown options.
    i�NrCrrrrr\�sr\c@seZdZdZdZed�ZdS)�OverlapErrora
    **3006** Raised when arguments and options overlap.

    For example:

    >>> raise OverlapError(names=['givenname', 'login'])
    Traceback (most recent call last):
      ...
    OverlapError: overlapping arguments and options: ['givenname', 'login']
    i�z,overlapping arguments and options: %(names)sNr6rrrrr]�sr]c@seZdZdZdZed�ZdS)�RequirementErrorz�
    **3007** Raised when a required parameter is not provided.

    For example:

    >>> raise RequirementError(name='givenname')
    Traceback (most recent call last):
      ...
    RequirementError: 'givenname' is required
    i�z'%(name)s' is requiredNr6rrrrr^�sr^c@seZdZdZdZed�ZdS)�ConversionErrora
    **3008** Raised when parameter value can't be converted to correct type.

    For example:

    >>> raise ConversionError(name='age', error=_(u'must be an integer'))
    Traceback (most recent call last):
      ...
    ConversionError: invalid 'age': must be an integer
    i��invalid '%(name)s': %(error)sNr6rrrrr_sr_c@seZdZdZdZed�ZdS)�ValidationErrora"
    **3009** Raised when a parameter value fails a validation rule.

    For example:

    >>> raise ValidationError(name='sn', error=_(u'can be at most 128 characters'))
    Traceback (most recent call last):
      ...
    ValidationError: invalid 'sn': can be at most 128 characters
    i�r`Nr6rrrrrasrac@seZdZdZdZed�ZdS)�NoSuchNamespaceErrorz�
    **3010** Raised when an unknown namespace is requested.

    For example:

    >>> raise NoSuchNamespaceError(name='Plugins')
    Traceback (most recent call last):
      ...
    NoSuchNamespaceError: api has no such namespace: 'Plugins'
    i�z%api has no such namespace: '%(name)s'Nr6rrrrrb+srbc@seZdZdZdZed�ZdS)�PasswordMismatchzM
    **3011** Raise when password and password confirmation don't match.
    i�zPasswords do not matchNr6rrrrrc;srcc@seZdZdZdZed�ZdS)�NotImplementedErrorzA
    **3012** Raise when a function hasn't been implemented.
    i�zCommand not implementedNr6rrrrrdDsrdc@seZdZdZdZed�ZdS)�NotConfiguredErrorz7
    **3013** Raise when there is no configuration
    i�z1Client is not configured. Run ipa-client-install.Nr6rrrrreMsrec@seZdZdZdZed�ZdS)�PromptFailedz;
    **3014** Raise when an interactive prompt failed.
    i�z$Could not get %(name)s interactivelyNr6rrrrrfVsrfc@seZdZdZdZed�ZdS)�DeprecationErrora

    **3015** Raise when a command has been deprecated

    For example:

    >>> raise DeprecationError(name='hbacrule_add_sourcehost')
    Traceback (most recent call last):
      ...
    DeprecationError: Command 'hbacrule_add_sourcehost' has been deprecated
    i�z&Command '%(name)s' has been deprecatedNr6rrrrrg_s
rgc@seZdZdZdZed�ZdS)�NotAForestRootErrora�
    **3016** Raised when an attempt to establish trust is done against non-root domain
             Forest root domain has the same name as the forest itself

    For example:

    >>> raise NotAForestRootError(forest='example.test', domain='jointops.test')
    Traceback (most recent call last):
      ...
    NotAForestRootError: Domain 'jointops.test' is not a root domain for forest 'example.test'
    i�z@Domain '%(domain)s' is not a root domain for forest '%(forest)s'Nr6rrrrrhmsrhc@seZdZdZdZdS)�ExecutionErrorzC
    **4000** Base class for execution errors (*4000 - 4999*).
    i�NrCrrrrri�sric@s eZdZdZdZdZed�ZdS)�NotFoundz�
    **4001** Raised when an entry is not found.

    For example:

    >>> raise NotFound(reason='no such user')
    Traceback (most recent call last):
      ...
    NotFound: no such user

    i��r'N�rrrrr2r3r-rrrrrrj�srjc@seZdZdZdZed�ZdS)�DuplicateEntryz�
    **4002** Raised when an entry already exists.

    For example:

    >>> raise DuplicateEntry
    Traceback (most recent call last):
      ...
    DuplicateEntry: This entry already exists

    i�zThis entry already existsNr6rrrrrm�srmc@seZdZdZdZed�ZdS)�HostServicez�
    **4003** Raised when a host service principal is requested

    For example:

    >>> raise HostService
    Traceback (most recent call last):
      ...
    HostService: You must enroll a host in order to create a host service

    i�z8You must enroll a host in order to create a host serviceNr6rrrrrn�srnc@seZdZdZdZed�ZdS)�MalformedServicePrincipalaj
    **4004** Raised when a service principal is not of the form: service/fully-qualified host name

    For example:

    >>> raise MalformedServicePrincipal(reason=_('missing service'))
    Traceback (most recent call last):
      ...
    MalformedServicePrincipal: Service principal is not of the form: service/fully-qualified host name: missing service

    i�zSService principal is not of the form: service/fully-qualified host name: %(reason)sNr6rrrrro�sroc@seZdZdZdZed�ZdS)�
RealmMismatcha
    **4005** Raised when the requested realm does not match the IPA realm

    For example:

    >>> raise RealmMismatch
    Traceback (most recent call last):
      ...
    RealmMismatch: The realm for the principal does not match the realm for this IPA server

    i�zHThe realm for the principal does not match the realm for this IPA serverNr6rrrrrp�srpc@seZdZdZdZed�ZdS)�RequiresRootz�
    **4006** Raised when a command requires the unix super-user to run

    For example:

    >>> raise RequiresRoot
    Traceback (most recent call last):
      ...
    RequiresRoot: This command requires root access

    i�z!This command requires root accessNr6rrrrrq�srqc@seZdZdZdZed�ZdS)�AlreadyPosixGroupz�
    **4007** Raised when a group is already a posix group

    For example:

    >>> raise AlreadyPosixGroup
    Traceback (most recent call last):
      ...
    AlreadyPosixGroup: This is already a posix group

    i�zThis is already a posix groupNr6rrrrrr�srrc@seZdZdZdZed�ZdS)�MalformedUserPrincipala4
    **4008** Raised when a user principal is not of the form: user@REALM

    For example:

    >>> raise MalformedUserPrincipal(principal='jsmith@@EXAMPLE.COM')
    Traceback (most recent call last):
      ...
    MalformedUserPrincipal: Principal is not of the form user@REALM: 'jsmith@@EXAMPLE.COM'

    i�z8Principal is not of the form user@REALM: '%(principal)s'Nr6rrrrrs�srsc@seZdZdZdZed�ZdS)�
AlreadyActivez�
    **4009** Raised when an entry is made active that is already active

    For example:

    >>> raise AlreadyActive()
    Traceback (most recent call last):
      ...
    AlreadyActive: This entry is already enabled

    i�zThis entry is already enabledNr6rrrrrtsrtc@seZdZdZdZed�ZdS)�AlreadyInactivez�
    **4010** Raised when an entry is made inactive that is already inactive

    For example:

    >>> raise AlreadyInactive()
    Traceback (most recent call last):
      ...
    AlreadyInactive: This entry is already disabled

    i�zThis entry is already disabledNr6rrrrrusruc@seZdZdZdZed�ZdS)�HasNSAccountLockz�
    **4011** Raised when an entry has the nsAccountLock attribute set

    For example:

    >>> raise HasNSAccountLock()
    Traceback (most recent call last):
      ...
    HasNSAccountLock: This entry cannot be enabled or disabled

    i�z(This entry cannot be enabled or disabledNr6rrrrrv(srvc@seZdZdZdZed�ZdS)�NotGroupMemberz�
    **4012** Raised when a non-member is attempted to be removed from a group

    For example:

    >>> raise NotGroupMember()
    Traceback (most recent call last):
      ...
    NotGroupMember: This entry is not a member

    i�zThis entry is not a memberNr6rrrrrw8srwc@seZdZdZdZed�ZdS)�RecursiveGroupz�
    **4013** Raised when a group is added as a member of itself

    For example:

    >>> raise RecursiveGroup()
    Traceback (most recent call last):
      ...
    RecursiveGroup: A group may not be a member of itself

    i�z%A group may not be a member of itselfNr6rrrrrxHsrxc@seZdZdZdZed�ZdS)�AlreadyGroupMemberz�
    **4014** Raised when a member is attempted to be re-added to a group

    For example:

    >>> raise AlreadyGroupMember()
    Traceback (most recent call last):
      ...
    AlreadyGroupMember: This entry is already a member

    i�zThis entry is already a memberNr6rrrrryXsryc@seZdZdZdZed�ZdS)�Base64DecodeErrora
    **4015** Raised when a base64-encoded blob cannot decoded

    For example:

    >>> raise Base64DecodeError(reason=_('Incorrect padding'))
    Traceback (most recent call last):
      ...
    Base64DecodeError: Base64 decoding failed: Incorrect padding

    i�z"Base64 decoding failed: %(reason)sNr6rrrrrzhsrzc@seZdZdZdZed�ZdS)�RemoteRetrieveErrora
    **4016** Raised when retrieving data from a remote server fails

    For example:

    >>> raise RemoteRetrieveError(reason=_("Failed to get certificate chain."))
    Traceback (most recent call last):
      ...
    RemoteRetrieveError: Failed to get certificate chain.

    i�r'Nr6rrrrr{xsr{c@seZdZdZdZed�ZdS)�SameGroupErrorz�
    **4017** Raised when adding a group as a member of itself

    For example:

    >>> raise SameGroupError()
    Traceback (most recent call last):
      ...
    SameGroupError: A group may not be added as a member of itself

    i�z.A group may not be added as a member of itselfNr6rrrrr|�sr|c@seZdZdZdZed�ZdS)�DefaultGroupErrorz�
    **4018** Raised when removing the default user group

    For example:

    >>> raise DefaultGroupError()
    Traceback (most recent call last):
      ...
    DefaultGroupError: The default users group cannot be removed

    i�z)The default users group cannot be removedNr6rrrrr}�sr}c@seZdZdZdZed�ZdS)�ManagedGroupErrorz�
    **4020** Raised when a managed group is deleted

    For example:

    >>> raise ManagedGroupError()
    Traceback (most recent call last):
      ...
    ManagedGroupError: Deleting a managed group is not allowed. It must be detached first.
    i�zCDeleting a managed group is not allowed. It must be detached first.Nr6rrrrr~�sr~c@seZdZdZdZed�ZdS)�ManagedPolicyErrorz�
    **4021** Raised when password policy is assigned to a managed group

    For example:

    >>> raise ManagedPolicyError()
    Traceback (most recent call last):
      ...
    ManagedPolicyError: A managed group cannot have a password policy.
    i�z.A managed group cannot have a password policy.Nr6rrrrr�src@seZdZdZdZed�ZdS)�	FileErrorz�
    **4022** Errors when dealing with files

    For example:

    >>> raise FileError(reason=_("cannot write file 'test'"))
    Traceback (most recent call last):
      ...
    FileError: cannot write file 'test'
    i�r'Nr6rrrrr��sr�c@seZdZdZdZed�ZdS)�NoCertificateErrora
    **4023** Raised when trying to retrieve a certificate that doesn't exist.

    For example:

    >>> raise NoCertificateError(entry='ipa.example.com')
    Traceback (most recent call last):
      ...
    NoCertificateError: 'ipa.example.com' doesn't have a certificate.
    i�z''%(entry)s' doesn't have a certificate.Nr6rrrrr��sr�c@seZdZdZdZed�ZdS)�ManagedGroupExistsErrora,
    **4024** Raised when adding a user and its managed group exists

    For example:

    >>> raise ManagedGroupExistsError(group=u'engineering')
    Traceback (most recent call last):
      ...
    ManagedGroupExistsError: Unable to create private group. A group 'engineering' already exists.
    i�zCUnable to create private group. A group '%(group)s' already exists.Nr6rrrrr��sr�c@seZdZdZdZed�ZdS)�ReverseMemberErrorai
    **4025** Raised when verifying that all reverse members have been added or removed.

    For example:

    >>> raise ReverseMemberError(verb=_('added'), exc=_("Group 'foo' not found."))
    Traceback (most recent call last):
      ...
    ReverseMemberError: A problem was encountered when verifying that all members were added: Group 'foo' not found.
    i�zPA problem was encountered when verifying that all members were %(verb)s: %(exc)sNr6rrrrr��sr�c@s eZdZdZdZdZed�ZdS)�AttrValueNotFounda
    **4026** Raised when an Attribute/Value pair is not found.

    For example:

    >>> raise AttrValueNotFound(attr='ipasudoopt', value='authenticate')
    Traceback (most recent call last):
      ...
    AttrValueNotFound: ipasudoopt does not contain 'authenticate'

    i�r1z%%(attr)s does not contain '%(value)s'Nrlrrrrr�sr�c@s eZdZdZdZdZed�ZdS)�SingleMatchExpecteda
    **4027** Raised when a search should return a single match

    For example:

    >>> raise SingleMatchExpected(found=9)
    Traceback (most recent call last):
      ...
    SingleMatchExpected: The search criteria was not specific enough. Expected 1 and found 9.
    i�r1zLThe search criteria was not specific enough. Expected 1 and found %(found)d.Nrlrrrrr�sr�c@seZdZdZdZed�ZdS)�AlreadyExternalGroupz�
    **4028** Raised when a group is already an external member group

    For example:

    >>> raise AlreadyExternalGroup
    Traceback (most recent call last):
      ...
    AlreadyExternalGroup: This group already allows external members

    i�z*This group already allows external membersNr6rrrrr�+sr�c@seZdZdZdZed�ZdS)�ExternalGroupViolationa?
    **4029** Raised when a group is already an external member group
             and an attempt is made to use it as posix group

    For example:

    >>> raise ExternalGroupViolation
    Traceback (most recent call last):
      ...
    ExternalGroupViolation: This group cannot be posix because it is external

    i�z1This group cannot be posix because it is externalNr6rrrrr�;s
r�c@seZdZdZdZed�ZdS)�PosixGroupViolationa6
    **4030** Raised when a group is already a posix group
             and cannot be converted to external

    For example:

    >>> raise PosixGroupViolation
    Traceback (most recent call last):
      ...
    PosixGroupViolation: This is already a posix group and cannot be converted to external one

    i�zEThis is already a posix group and cannot be converted to external oneNr6rrrrr�Ls
r�c@seZdZdZdZdS)�EmptyResultz�
    **4031** Raised when a LDAP search returned no results.

    For example:

    >>> raise EmptyResult(reason='no matching entry found')
    Traceback (most recent call last):
      ...
    EmptyResult: no matching entry found

    i�NrCrrrrr�]sr�c@seZdZdZdZed�ZdS)�InvalidDomainLevelErrora?
    **4032** Raised when a operation could not be completed due to a invalid
             domain level.

    For example:

    >>> raise InvalidDomainLevelError(reason='feature requires domain level 4')
    Traceback (most recent call last):
      ...
    InvalidDomainLevelError: feature requires domain level 4

    i�r'Nr6rrrrr�ls
r�c@seZdZdZdZed�ZdS)�ServerRemovalErrora,
    **4033** Raised when a removal of IPA server from managed topology fails

    For example:

    >>> raise ServerRemovalError(reason='Removal disconnects topology')
    Traceback (most recent call last):
      ...
    ServerRemovalError: Server removal aborted: Removal disconnects topology

    i�z#Server removal aborted: %(reason)s.Nr6rrrrr�~sr�c@seZdZdZdZed�ZdS)�%OperationNotSupportedForPrincipalTypezQ
    **4034** Raised when an operation is not supported for a principal type
    i�z@%(operation)s is not supported for %(principal_type)s principalsNr6rrrrr��s
�r�c@seZdZdZdZed�ZdS)�HTTPRequestErrorzt
    **4035** Raised when an HTTP request fails.  Includes the response
    status in the ``status`` attribute.
    i�z1Request failed with status %(status)s: %(reason)sNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�RedundantMappingRuleao
    **4036** Raised when more than one rule in a CSR generation ruleset matches
    a particular helper.

    For example:

    >>> raise RedundantMappingRule(ruleset='syntaxSubject', helper='certutil')
    Traceback (most recent call last):
      ...
    RedundantMappingRule: Mapping ruleset "syntaxSubject" has more than one
    rule for the certutil helper.
    i�zNMapping ruleset "%(ruleset)s" has more than one rule for the %(helper)s helperNr6rrrrr��s
r�c@seZdZdZdZed�ZdS)�CSRTemplateErrorzL
    **4037** Raised when evaluation of a CSR generation template fails
    i�r'Nr6rrrrr��sr�c@seZdZdZdZed�ZdS)�AlreadyContainsValueErrorz{
    **4038** Raised when BaseLDAPAddAttribute operation fails because one
    or more new values are already present.
    i�z.'%(attr)s' already contains one or more valuesNr6rrrrr��sr�c@seZdZdZdZdS)�BuiltinErrorzK
    **4100** Base class for builtin execution errors (*4100 - 4199*).
    iNrCrrrrr��sr�c@seZdZdZdZed�ZdS)�	HelpErrorz�
    **4101** Raised when requesting help for an unknown topic.

    For example:

    >>> raise HelpError(topic='newfeature')
    Traceback (most recent call last):
      ...
    HelpError: no command nor help topic 'newfeature'
    iz%no command nor help topic '%(topic)s'Nr6rrrrr��sr�c@seZdZdZdZdS)�	LDAPErrorzH
    **4200** Base class for LDAP execution errors (*4200 - 4299*).
    ihNrCrrrrr��sr�c@seZdZdZdZed�ZdS)�MidairCollisionz�
    **4201** Raised when a change collides with another change

    For example:

    >>> raise MidairCollision()
    Traceback (most recent call last):
      ...
    MidairCollision: change collided with another change
    iiz#change collided with another changeNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�EmptyModlistz�
    **4202** Raised when an LDAP update makes no changes

    For example:

    >>> raise EmptyModlist()
    Traceback (most recent call last):
      ...
    EmptyModlist: no modifications to be performed
    ijz no modifications to be performedNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�
DatabaseErrora!
    **4203** Raised when an LDAP error is not otherwise handled

    For example:

    >>> raise DatabaseError(desc=_("Can't contact LDAP server"), info=_('Info goes here'))
    Traceback (most recent call last):
      ...
    DatabaseError: Can't contact LDAP server: Info goes here
    ikz%(desc)s: %(info)sNr6rrrrr�sr�c@seZdZdZdZed�ZdS)�LimitsExceededz�
    **4204** Raised when search limits are exceeded.

    For example:

    >>> raise LimitsExceeded()
    Traceback (most recent call last):
      ...
    LimitsExceeded: limits exceeded for this query
    ilzlimits exceeded for this queryNr6rrrrr�sr�c@seZdZdZdZed�ZdS)�ObjectclassViolationa4
    **4205** Raised when an entry is missing a required attribute or objectclass

    For example:

    >>> raise ObjectclassViolation(info=_('attribute "krbPrincipalName" not allowed'))
    Traceback (most recent call last):
      ...
    ObjectclassViolation: attribute "krbPrincipalName" not allowed
    imz%(info)sNr6rrrrr�'sr�c@seZdZdZdZed�ZdS)�NotAllowedOnRDNz�
    **4206** Raised when an RDN value is modified.

    For example:

    >>> raise NotAllowedOnRDN()
    Traceback (most recent call last):
      ...
    NotAllowedOnRDN: modifying primary key is not allowed
    inz$modifying primary key is not allowedNr6rrrrr�6sr�c@seZdZdZdZed�ZdS)�OnlyOneValueAlloweda 
    **4207** Raised when trying to set more than one value to single-value attributes

    For example:

    >> raise OnlyOneValueAllowed(attr='ipasearchtimelimit')
    Traceback (most recent call last):
      ...
    OnlyOneValueAllowed: ipasearchtimelimit: Only one value allowed.
    ioz!%(attr)s: Only one value allowed.Nr6rrrrr�Fsr�c@seZdZdZdZed�ZdS)�
InvalidSyntaxz�
    **4208** Raised when an value does not match the required syntax

    For example:

    >> raise InvalidSyntax(attr='ipahomesrootdir')
    Traceback (most recent call last):
      ...
    InvalidSyntax: ipahomesrootdir: Invalid syntax
    ipz%(attr)s: Invalid syntax.Nr6rrrrr�Vsr�c@seZdZdZdZed�ZdS)�BadSearchFilterz�
    **4209** Raised when an invalid LDAP search filter is used

    For example:

    >>> raise BadSearchFilter(info=_('invalid syntax'))
    Traceback (most recent call last):
      ...
    BadSearchFilter: Bad search filter invalid syntax
    iqzBad search filter %(info)sNr6rrrrr�fsr�c@seZdZdZdZed�ZdS)�NotAllowedOnNonLeafz�
    **4210** Raised when operation is not allowed on a non-leaf entry

    For example:

    >>> raise NotAllowedOnNonLeaf()
    Traceback (most recent call last):
      ...
    NotAllowedOnNonLeaf: Not allowed on non-leaf entry
    irzNot allowed on non-leaf entryNr6rrrrr�vsr�c@seZdZdZdZed�ZdS)�DatabaseTimeoutz�
    **4211** Raised when an LDAP call times out

    For example:

    >>> raise DatabaseTimeout()
    Traceback (most recent call last):
      ...
    DatabaseTimeout: LDAP timeout
    iszLDAP timeoutNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�TaskTimeoutz�
    **4213** Raised when an LDAP task times out

    For example:

    >>> raise TaskTimeout(task='Automember', task_dn='')
    Traceback (most recent call last):
      ...
    TaskTimeout: Automember LDAP task timeout, Task DN: ''
    iuz2%(task)s LDAP task timeout, Task DN: '%(task_dn)s'Nr6rrrrr��sr�c@seZdZdZdZed�ZdS)�TimeLimitExceededzH
    **4214** Raised when time limit for the operation is exceeded.
    ivzConfigured time limit exceededNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�SizeLimitExceededzH
    **4215** Raised when size limit for the operation is exceeded.
    iwzConfigured size limit exceededNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�AdminLimitExceededz`
    **4216** Raised when server limit imposed by administrative authority was
    exceeded
    ixz/Configured administrative server limit exceededNr6rrrrr��sr�c@seZdZdZdZdS)�CertificateErrorzO
    **4300** Base class for Certificate execution errors (*4300 - 4399*).
    i�NrCrrrrr��sr�c@seZdZdZdZed�ZdS)�CertificateOperationErrora2
    **4301** Raised when a certificate operation cannot be completed

    For example:

    >>> raise CertificateOperationError(error=_(u'bad serial number'))
    Traceback (most recent call last):
      ...
    CertificateOperationError: Certificate operation cannot be completed: bad serial number

    i�z4Certificate operation cannot be completed: %(error)sNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�CertificateFormatErroraD
    **4302** Raised when a certificate is badly formatted

    For example:

    >>> raise CertificateFormatError(error=_(u'improperly formated DER-encoded certificate'))
    Traceback (most recent call last):
      ...
    CertificateFormatError: Certificate format error: improperly formated DER-encoded certificate

    i�z#Certificate format error: %(error)sNr6rrrrr��sr�c@seZdZdZdZed�ZdS)�MutuallyExclusiveErrora]
    **4303** Raised when an operation would result in setting two attributes which are mutually exlusive.

    For example:

    >>> raise MutuallyExclusiveError(reason=_(u'hosts may not be added when hostcategory=all'))
    Traceback (most recent call last):
      ...
    MutuallyExclusiveError: hosts may not be added when hostcategory=all

    i�r'Nr6rrrrr��sr�c@seZdZdZdZed�ZdS)�
NonFatalErroraA
    **4304** Raised when part of an operation succeeds and the part that failed isn't critical.

    For example:

    >>> raise NonFatalError(reason=_(u'The host was added but the DNS update failed'))
    Traceback (most recent call last):
      ...
    NonFatalError: The host was added but the DNS update failed

    i�r'Nr6rrrrr��sr�c@seZdZdZdZed�ZdS)�AlreadyRegisteredErrorz�
    **4305** Raised when registering a user that is already registered.

    For example:

    >>> raise AlreadyRegisteredError()
    Traceback (most recent call last):
      ...
    AlreadyRegisteredError: Already registered

    i�zAlready registeredNr6rrrrr�
sr�c@seZdZdZdZed�ZdS)�NotRegisteredErrorz�
    **4306** Raised when not registered and a registration is required

    For example:
    >>> raise NotRegisteredError()
    Traceback (most recent call last):
      ...
    NotRegisteredError: Not registered yet

    i�zNot registered yetNr6rrrrr�sr�c@seZdZdZdZed�ZdS)�DependentEntrya9
    **4307** Raised when an entry being deleted has dependencies

    For example:
    >>> raise DependentEntry(label=u'SELinux User Map', key=u'test', dependent=u'test1')
    Traceback (most recent call last):
      ...
    DependentEntry: test cannot be deleted because SELinux User Map test1 requires it

    i�zE%(key)s cannot be deleted because %(label)s %(dependent)s requires itNr6rrrrr�.sr�c@seZdZdZdZed�ZdS)�LastMemberErroraa
    **4308** Raised when an entry being deleted or disabled is last member of a protected group

    For example:
    >>> raise LastMemberError(key=u'admin', label=u'group', container=u'admins')
    Traceback (most recent call last):
      ...
    LastMemberError: admin cannot be deleted or disabled because it is the last member of group admins

    i�z^%(key)s cannot be deleted or disabled because it is the last member of %(label)s %(container)sNr6rrrrr�>sr�c@seZdZdZdZed�ZdS)�ProtectedEntryErroraX
    **4309** Raised when an entry being deleted or modified in a forbidden way is protected

    For example:
    >>> raise ProtectedEntryError(label=u'group', key=u'admins', reason=_(u'privileged group'))
    Traceback (most recent call last):
      ...
    ProtectedEntryError: group admins cannot be deleted/modified: privileged group

    i�z8%(label)s %(key)s cannot be deleted/modified: %(reason)sNr6rrrrr�Nsr�c@seZdZdZdZed�ZdS)�CertificateInvalidErrorz�
    **4310** Raised when a certificate is not valid

    For example:

    >>> raise CertificateInvalidError(name=_(u'CA'))
    Traceback (most recent call last):
      ...
    CertificateInvalidError: CA certificate is not valid

    i�z!%(name)s certificate is not validNr6rrrrr�^sr�c@seZdZdZdZed�ZdS)�SchemaUpToDatea�
    **4311** Raised by server when client asks for metadata but
    already has current version. Exception's attribute 'fingerprint'
    identitfies schema version to use. Attribute 'ttl' specifies how
    long (in seconds) before client should check for schema update.

    For example:
    >>> raise SchemaUpToDate(fingerprint=u'deadbeef', ttl=3600)
    Traceback (most recent call last):
      ...
    SchemaUpToDate: Schema is up to date (FP 'deadbeef', TTL 3600 s)
    i�z:Schema is up to date (FP '%(fingerprint)s', TTL %(ttl)s s)Nr6rrrrr�os
r�c@seZdZdZdZdS)�DNSErrorz�
    **4400** Base class for DNS execution errors (*4400 - 4499*).
    These are typically wrapper exceptions around dns.exception.DNSException.
    i0NrCrrrrr��sr�c@seZdZdZdZed�ZdS)�DNSNotARecordErrora
    **4019** Raised when a hostname is not a DNS A/AAAA record

    For example:

    >>> raise DNSNotARecordError(hostname='x')
    Traceback (most recent call last):
      ...
    DNSNotARecordError: Host 'x' does not have corresponding DNS A/AAAA record

    i�zAHost '%(hostname)s' does not have corresponding DNS A/AAAA recordNr6rrrrr��s
�r�c@seZdZdZdZed�ZdS)�DNSDataMismatcha�
    **4212** Raised when an DNS query didn't return expected answer
    in a configured time limit.

    For example:

    >>> raise DNSDataMismatch(expected="zone3.test. 86400 IN A 192.0.2.1",                               got="zone3.test. 86400 IN A 192.168.1.1")
    Traceback (most recent call last):
      ...
    DNSDataMismatch: DNS check failed: Expected {zone3.test. 86400 IN A 192.0.2.1} got {zone3.test. 86400 IN A 192.168.1.1}
    itz7DNS check failed: Expected {%(expected)s} got {%(got)s}Nr6rrrrr��s
r�c@seZdZdZdZed�ZdS)�DNSResolverErrora
    **4401** Wrapper around dns.exception.DNSException.
    Raised when an error occured in dns.resolver.

    For example:
    >>> raise DNSResolverError(exception=ValueError("this is bad"))
    Traceback (most recent call last):
      ...
    DNSResolverError: this is bad
    i1z
%(exception)sNr6rrrrr��sr�c@seZdZdZdZdS)�
TrustErrorz�
    **4500** Base class for trust execution errors (*4500 - 4599*).
    These are typically instantiated when there is an error in establishing or
    modifying a trust to another forest.
    i�NrCrrrrr��sr�c@seZdZdZdZed�ZdS)�TrustTopologyConflictErrora#
    **4501** Raised when an attempt to establish trust fails with a topology
             conflict against another forest the target forest trusts

    For example:

    >>> raise TrustTopologyConflictError(forest='example.test',
                                         conflict='my.ad.test',
                                         domains=['ad.test'])
    Traceback (most recent call last):
      ...
    TrustTopologyConflictError: Forest 'example.test' has existing trust to forest(s) ['ad.test'] which prevents a trust to 'my.ad.test'
    i�zhForest '%(forest)s' has existing trust to forest(s) %(domains)s which prevents a trust to '%(conflict)s'Nr6rrrrr��sr�c@seZdZdZdZdS)�GenericErrorzR
    **5000** Base class for errors that don't fit elsewhere (*5000 - 5999*).
    i�NrCrrrrr��sr�cCs|jSr�r2)�Errr�<lambda>��r�)rccs|]}|j|fVqdSrr�)�.0�errr�	<genexpr>�r�r��__main__z
public errors)�rrZipalib.textrr[Zipalibrrrr r"r#r$r%r&r(r)r*r+r-r.r5r7r8r9r:r;r=r>r?r@rArBrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrVrWrXrYr\r]r^r_rarbrcrdrerfrgrhrirjrmrnrorprqrrrsrtrurvrwrxryrzr{r|r}r~rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��tuple�sortedZ
iter_messages�globalsZ
public_errors�dictZerrors_by_coderZprint_reportrrrr�<module>sW			

				

				
			�