<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 3, 2017 at 4:59 AM, Ken Kundert <span dir="ltr"><<a href="mailto:python-ideas@shalmirane.com" target="_blank">python-ideas@shalmirane.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":3ny" class="a3s aXjCH m15d07aca6876c2df">That is the problem.  To write the error handler, I need the misspelled name.<br>
The only way to get it is to extract it from the error message. The need to<br>
unpack information that was just packed suggests that the packing was done too<br>
early.  That is my point.</div></blockquote></div><br><ol><li>You can pass an object with all the required information and an appropriate __str__() method to the exception constructor.<br></li><li>If you own the exception hierarchy, you can modify the __str__() method of the exception class.</li></ol><div><br></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><span style="color:rgb(0,102,0)">Juancarlo </span><b style="color:rgb(0,102,0)">Añez</b></div>
</div></div>