Skip to content

Commit

Permalink
💡 Improve DioException.requestOptions explanation when it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Sep 11, 2023
1 parent 07a4002 commit 8a86da5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dio/lib/src/dio_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ class DioException implements Exception {
);

/// The request info for the request that throws exception.
///
/// The info can be empty (e.g. `uri` equals to "")
/// if the request was never submitted.
final RequestOptions requestOptions;

/// Response info, it may be `null` if the request can't reach to the
Expand Down

0 comments on commit 8a86da5

Please sign in to comment.