Hi Guillaume!

That's actually something I have on my TODO list. While an exception is normally correct, because the value can't be returned, it's something that gets really annoying in the view. What I've planned is adding an option to turn these exceptions off and return null instead.

nico

Guillaume Rossolini wrote:
Hi,

I just noticed that Zend_Mail_Message::getHeader() throws an exception when
I try to get a header that is not there.  For instance, the "reply-to"
header isn't mandatory.
Do you think I should put try/catch blocks in my code? Or maybe subclassing
Zend_Mail_Message to return a false boolean would be a more sensible
approach?

Thanks,

--
Guillaume Rossolini

Reply via email to