Re: [PHP] Which Exception to use ....

2008-08-23 Thread David Otton
2008/8/22 Jochem Maas [EMAIL PROTECTED]: still leaves the questions as to what a DomainException and a ErrorException is meant to model. A domain exception is thrown when a value is valid according to its type, but not within the domain of the function that it is being passed to. For example

Re: [PHP] Which Exception to use ....

2008-08-23 Thread Jochem Maas
David Otton schreef: 2008/8/22 Jochem Maas [EMAIL PROTECTED]: still leaves the questions as to what a DomainException and a ErrorException is meant to model. A domain exception is thrown when a value is valid according to its type, but not within the domain of the function that it is being

[PHP] Which Exception to use ....

2008-08-22 Thread Jochem Maas
here is a list of built in Exception classes, I'd figured I'd start using them, and save on rolling my own: Exception ErrorException DOMException LogicException BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException OutOfRangeException

Re: [PHP] Which Exception to use ....

2008-08-22 Thread Pavel
//sorry for my english Firstly, this list of exception show only registered in system exceptions, which (excluding one-two) are exceptions of some php mobules:mysqli,sqllite and so on... I use only Exception class and my extends on it (so and exceptions from your list are extends...). --

Re: [PHP] Which Exception to use ....

2008-08-22 Thread Jochem Maas
Pavel schreef: //sorry for my english Firstly, this list of exception show only registered in system exceptions, yes I know, I wrote exactly that in the first line of my post. which (excluding one-two) are exceptions of some php mobules:mysqli,sqllite and so on... it's 5 actually, I

Re: [PHP] Which Exception to use ....

2008-08-22 Thread Andrew Ballard
On Fri, Aug 22, 2008 at 12:35 PM, Jochem Maas [EMAIL PROTECTED] wrote: Pavel schreef: //sorry for my english Firstly, this list of exception show only registered in system exceptions, yes I know, I wrote exactly that in the first line of my post. which (excluding one-two) are exceptions