Re: Exception message cleanup

From: Date: Thu, 09 Apr 2015 15:12:52 +0000
Subject: Re: Exception message cleanup
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-85757@lists.php.net to get a copy of this message
Nikita, On Apr 9, 2015 8:56 AM, "Nikita Popov" <nikita.ppv@gmail.com> wrote: > > On Thu, Apr 9, 2015 at 12:33 PM, Niklas Keller <me@kelunik.com> wrote: > > > Hi Nikita, > > > > I like the new display format, but there's one thing I miss. If you > > replace the exception name for warnings and fatals, how does a user know > > which exception he has to catch? > > > > Regards, Niklas > > > Sorry, I don't understand what you mean here. The first part of the message > says which exception you need to catch, right? > > Nikita I think he means something greppable in the output. So prefix the exception name in your custom message with "Uncaught " so people can search the output for "Uncaught \w+" +1 on the change overall (with a "Uncaught" prefix before the exception classname). Anthony

« previous php.internals (#85757) next »