Line data Source code
1 : // Copyright The OpenTelemetry Authors
2 : // SPDX-License-Identifier: Apache-2.0
3 :
4 : import 'package:http/http.dart' as http;
5 :
6 : /// Thrown by the OTLP/HTTP exporters when the collector answers with a
7 : /// non-2xx status. [statusCode] decides whether the export is retried.
8 : class OtlpHttpException extends http.ClientException {
9 : /// HTTP status code of the failed export response.
10 : final int statusCode;
11 :
12 7 : OtlpHttpException(super.message, this.statusCode, [super.uri]);
13 : }
|