note 84935 deleted from class.pdoexception by danbrown

From: Date: Wed, 06 Aug 2008 17:13:55 +0000
Subject: note 84935 deleted from class.pdoexception by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-143228@lists.php.net to get a copy of this message
Note Submitter: demian85 at gmail dot com Reason: useless ---- I think this is stupid, PDOException should not extend RuntimeException because it isn't. Runtime exceptions are supposed to be unpredictable and represent a programming errors that, in most cases, should not be captured. PDOException is an SQL exception that we know in advance it can be thrown. Check for example SQLException in Java. This is not the only case, i think all the exceptions that extend from RuntimeException should extend from Exception instead.

« previous php.notes (#143228) next »