1<?php
2/**
3 * This file is part of the FreeDSx LDAP package.
4 *
5 * (c) Chad Sikorra <Chad.Sikorra@gmail.com>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11namespace FreeDSx\Ldap\Exception;
12
13use FreeDSx\Ldap\Operation\ResultCode;
14
15/**
16 * Used in client-side requests to indicate generic issues with non-success request responses for operations. Used to
17 * indicate an error during server-side operation processing. The resulting message and code is used in the
18 * LDAP result sent back to the client (when thrown from the request handler).
19 *
20 * @author Chad Sikorra <Chad.Sikorra@gmail.com>
21 */
22class OperationException extends \Exception
23{
24    public function __construct(string $message = '', int $code = ResultCode::OPERATIONS_ERROR, \Throwable $previous = null)
25    {
26        parent::__construct($message, $code, $previous);
27    }
28}
29