From bfdcbd30d59f846143e20dc81cb62a825f26f9fc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 14 Nov 2016 12:41:29 +0000 Subject: [PATCH] Improve string representation of BoxExceptions. Show the exception type as well as subtype in GetMessage(). --- lib/common/makeexception.pl.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common/makeexception.pl.in b/lib/common/makeexception.pl.in index bddaa94a3..44959dad2 100755 --- a/lib/common/makeexception.pl.in +++ b/lib/common/makeexception.pl.in @@ -160,12 +160,13 @@ for(my $e = 0; $e <= $#exception; $e++) { if($exception[$e] ne '') { - print CPP "\t\tcase ".$exception[$e].': return "'.$exception[$e].'";'."\n"; + print CPP "\t\tcase ".$exception[$e].': return "'.$class.'Exception'. + '('.$exception[$e].')";'."\n"; } } print CPP <<__E; - default: return "Unknown"; + default: return "${class}Exception(Unknown)"; } } __E