<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>User-facing notifications shouldn&#039;t contain stack traces or talk about exceptions</title> 
  <pubDate>Thu, 09 Apr 2026 22:17:57 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8041</link> 
  <atom:link rel="self" type="application/rss+xml" title="User-facing notifications shouldn&#039;t contain stack traces or talk about exceptions" href="https://bugs.horde.org/ticket/8041/rss" /> 
  <description>User-facing notifications shouldn&#039;t contain stack traces or talk about exceptions</description> 
 
   
   
  <item> 
   <title>Example:



exception &#039;Horde_Exception&#039; with message &#039;This r</title> 
   <description>Example:



exception &#039;Horde_Exception&#039; with message &#039;This request cannot be completed because the link you followed or the form you submitted was only valid for 30 minutes. Please try again now.&#039; in /var/www/horde/horde-hatchery/imp/lib/IMP.php:138 Stack trace: #0 /var/www/horde/horde-hatchery/imp/compose.php(117): IMP::checkRequestToken(&#039;imp.compose&#039;, &#039;VTpiA2aW_Z5yeLN...&#039;) #1 {main}</description> 
   <pubDate>Mon, 02 Mar 2009 22:08:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t52836</link> 
  </item> 
   
  <item> 
   <title>This is probably better described as removing all of the fol</title> 
   <description>This is probably better described as removing all of the following from IMP:

$notification-&gt;push($e)

where $e is an Exception, and replacing with:

$notification-&gt;push($e-&gt;getMessage() [, $e-&gt;getCode]);</description> 
   <pubDate>Mon, 02 Mar 2009 22:28:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t52842</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t agree. Pushing exceptions should be as easy as pushi</title> 
   <description>I don&#039;t agree. Pushing exceptions should be as easy as pushing PEAR_Errors. If necessary we should refactor Notification instead.</description> 
   <pubDate>Mon, 02 Mar 2009 23:11:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t52845</link> 
  </item> 
   
  <item> 
   <title>&gt; I don&#039;t agree. Pushing exceptions should be as easy as pus</title> 
   <description>&gt; I don&#039;t agree. Pushing exceptions should be as easy as pushing 

&gt; PEAR_Errors. If necessary we should refactor Notification instead.



I guess I am confused, since I thought you were arguing for exactly the opposite here:

http://lists.horde.org/archives/dev/Week-of-Mon-20090223/023797.html



I *want* to be able to push Exceptions onto the Notification stack, but I thought that I had been outvoted re: this issue.</description> 
   <pubDate>Mon, 02 Mar 2009 23:33:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t52858</link> 
  </item> 
   
  <item> 
   <title>As far as I understood the outcome was just to not use error</title> 
   <description>As far as I understood the outcome was just to not use error/exception codes for notification classes. My &quot;if you really want&quot; was rather pointing at the fact that we didn&#039;t talk about how to deal with exceptions in the frontend in H4 at all. Pushing them as notifications might still be the best solution, but since we re-think everything, someone might come up with a better idea.

And to voice my opinion: I still like notifications, though we might also need a general handler for uncatched exceptions. Heck, I wrote that stuff 7 years ago. :-)</description> 
   <pubDate>Mon, 02 Mar 2009 23:55:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t52859</link> 
  </item> 
   
  <item> 
   <title>Resolving for now, since I believe my initial commits have b</title> 
   <description>Resolving for now, since I believe my initial commits have been backed out over the last few months.</description> 
   <pubDate>Tue, 19 May 2009 15:02:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t54253</link> 
  </item> 
   
  <item> 
   <title>Nope - I still get exception message from git IMP (when I ta</title> 
   <description>Nope - I still get exception message from git IMP (when I take too long to use a link, for example).</description> 
   <pubDate>Fri, 22 May 2009 20:27:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t54289</link> 
  </item> 
   
  <item> 
   <title>&gt; Nope - I still get exception message from git IMP (when I </title> 
   <description>&gt; Nope - I still get exception message from git IMP (when I take too 

&gt; long to use a link, for example).



Did somebody revert all the changes I made where I was passing the Exception object directly to the notification stack?  I haven&#039;t touched any of them.  It&#039;s probably easiest to simply pick them off one-by-one as they are encountered instead.</description> 
   <pubDate>Fri, 29 May 2009 05:45:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t54339</link> 
  </item> 
   
  <item> 
   <title>Going to close this.  We can deal with these errors when the</title> 
   <description>Going to close this.  We can deal with these errors when they show up.</description> 
   <pubDate>Tue, 30 Jun 2009 18:47:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8041#t54754</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
