Re: Proposal: Introduction of InvalidStateException

From: Date: Thu, 17 Oct 2013 16:07:30 +0000
Subject: Re: Proposal: Introduction of InvalidStateException
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-69639@lists.php.net to get a copy of this message
> > > > I would like to propose the introduction of an 'InvalidStateException' >> > into the SPL extension. Within the existing exceptions I am not able >> > to find a type that would represent a state error, throwable if a >> > method has been invoked at an illegal or inappropriate time. >> > >> >> Exceptions are one part of the SPL that are a nasty, poorly thought-out >> mess (no offense to anyone who worked on it; this stuff is harder than >> people realize). I am -1 on simply adding another exception to our mess, >> but if we can clean it up then I might support it, depending on details. >> > > if somebody wonders what Levi is referring to: > https://wiki.php.net/rfc/spl-improvements > > Also, I have a specific one for exceptions: https://wiki.php.net/rfc/spl-improvements/exceptions I am already updating it with content appropriate to this thread.

« previous php.internals (#69639) next »