Ensuring that Exceptions are always caught

No.

See A Pragmatic Look at Exception Specifications for reasons why not.

The only way you can “help” this is to document the exceptions your function can throw, say as a comment in the header file declaring it. This is not enforced by the compiler or anything. Use code reviews for that purpose.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)