toString method
override
The string representation of this exception, including Dio-level details.
If originalException is present, its details are appended on a new line after the runtime type and message.
Example output:
ConnectionTimeoutException: Request timed out after 30 seconds
Original: DioException [connectionTimeout]: ...
Implementation
@override
String toString() {
return '$runtimeType: $message'
'${traceId != null ? ' (traceId: $traceId)' : ''}'
'${originalException != null ? '\nOriginal: $originalException' : ''}';
}