in reply to Re^2: error catching
in thread error catching

RaiseError doesn't work for the initial ->connect statement. You need to check that one manually.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^4: error catching
by runrig (Abbot) on Dec 20, 2006 at 01:04 UTC
    Yes, it does. Since 0.91.

      Oh. That hasn't been true in any DBI I've knowingly used. Maybe the feature just didn't work for several years.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Re^4: error catching
by Joost (Canon) on Dec 20, 2006 at 01:05 UTC

      Yes. A failed ->connect call returns undef so there's no object that a method can be called upon.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊