diff --git a/lib/src/seq_client_exception.dart b/lib/src/seq_client_exception.dart index 026a3a0..536878b 100644 --- a/lib/src/seq_client_exception.dart +++ b/lib/src/seq_client_exception.dart @@ -14,4 +14,19 @@ class SeqClientException implements Exception { /// The stack trace of the exception that caused this exception, if any. final StackTrace? innerStackTrace; + + @override + String toString() { + final buffer = StringBuffer() + ..write('SeqClientException: ') + ..write(message); + + if (innerException != null) { + buffer + ..write('; innerException: ') + ..write(innerException); + } + + return buffer.toString(); + } }