If you're going to trap exceptions at the top level you should..trap exceptions at the top level. And nowhere else unless you have specific reason. So yes, there is error handling logic, but it is not in that specific module.

Opening files in Perl is different for a fairly important reason. If you're opening files you need to test the open and throw an exception because otherwise there is no exception to be caught and handled on the top level. In languages which automatically throw exceptions on failures to open files (eg Ruby) that code can go away.

If you're programming in Java then you have no choice but to note the existence of exceptions everywhere. It is my firm opinion that this is a design mistake in Java that encourages poor coding techniques.


In reply to Re^9: Runtime introspection: What good is it? by tilly
in thread Runtime introspection: What good is it? by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.