Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Exception;
/** * XRPC response body could not be decoded as JSON. * * @api */final class XrpcDecodeException extends XrpcException {
public function __construct( string $method, string $serviceUrl, public readonly int $statusCode, public readonly string $responseBody, ?\Throwable $previous = NULL, ) { parent::__construct( \sprintf('XRPC response %s did not contain valid JSON.', $method), $method, $serviceUrl, $previous, ); }
}