. * * @author Daniil Gentili * @copyright 2016-2023 Daniil Gentili * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 * @link https://docs.madelineproto.xyz MadelineProto documentation */ namespace danog\MadelineProto; /** * Indicates a transport error returned by Telegram's API. */ final class TransportError extends Exception { public function __construct(public readonly int $error, ?Exception $previous = null) { parent::__construct((string) $error, $error, $previous); } }