From dfe5c8afb39fca8556ec65608c5c28c7821a1730 Mon Sep 17 00:00:00 2001 From: StarProxima Date: Tue, 3 Sep 2024 22:28:35 +0300 Subject: [PATCH] Add toString to RevokeTokenException --- packages/fresh/lib/src/fresh.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/fresh/lib/src/fresh.dart b/packages/fresh/lib/src/fresh.dart index fe5b8fa..b6298eb 100644 --- a/packages/fresh/lib/src/fresh.dart +++ b/packages/fresh/lib/src/fresh.dart @@ -2,7 +2,11 @@ import 'dart:async'; /// An Exception that should be thrown when overriding `refreshToken` if the /// refresh fails and should result in a force-logout. -class RevokeTokenException implements Exception {} +class RevokeTokenException implements Exception { + @override + String toString() => + 'RevokeTokenException: refresh fails and should result in a force-logout'; +} /// {@template oauth2_token} /// Standard OAuth2Token as defined by