3 * This exception is thrown when the default state is missing
5 * @author Roland Haeder <webmaster@ship-simu.org>
7 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
8 * @license GNU GPL 3.0 or any newer version
9 * @link http://www.ship-simu.org
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 class InvalidStateException extends FrameworkException {
26 * The super constructor for all exceptions
28 * @param $msgArray An array with message parts
29 * @param $code An optional code for better debugging
32 public function __construct(array $msgArray, $code) {
33 // Prepare the message
34 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
35 $msgArray[0]->__toString(),
38 $msgArray[0]->getClassName()
42 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
44 // Call parent contructor with message
45 parent::__construct($message, $code);
53 * This exception is thrown when the default state is missing
55 * @author Roland Haeder <webmaster@ship-simu.org>
57 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
58 * @license GNU GPL 3.0 or any newer version
59 * @link http://www.ship-simu.org
61 * This program is free software: you can redistribute it and/or modify
62 * it under the terms of the GNU General Public License as published by
63 * the Free Software Foundation, either version 3 of the License, or
64 * (at your option) any later version.
66 * This program is distributed in the hope that it will be useful,
67 * but WITHOUT ANY WARRANTY; without even the implied warranty of
68 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
69 * GNU General Public License for more details.
71 * You should have received a copy of the GNU General Public License
72 * along with this program. If not, see <http://www.gnu.org/licenses/>.
74 class InvalidStateException extends FrameworkException {
76 * The super constructor for all exceptions
78 * @param $msgArray An array with message parts
79 * @param $code An optional code for better debugging
82 public function __construct(array $msgArray, $code) {
83 // Prepare the message
84 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
85 $msgArray[0]->__toString(),
88 $msgArray[0]->getClassName()
92 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
94 // Call parent contructor with message
95 parent::__construct($message, $code);
103 * This exception is thrown when the default state is missing
105 * @author Roland Haeder <webmaster@ship-simu.org>
107 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
108 * @license GNU GPL 3.0 or any newer version
109 * @link http://www.ship-simu.org
111 * This program is free software: you can redistribute it and/or modify
112 * it under the terms of the GNU General Public License as published by
113 * the Free Software Foundation, either version 3 of the License, or
114 * (at your option) any later version.
116 * This program is distributed in the hope that it will be useful,
117 * but WITHOUT ANY WARRANTY; without even the implied warranty of
118 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
119 * GNU General Public License for more details.
121 * You should have received a copy of the GNU General Public License
122 * along with this program. If not, see <http://www.gnu.org/licenses/>.
124 class InvalidStateException extends FrameworkException {
126 * The super constructor for all exceptions
128 * @param $msgArray An array with message parts
129 * @param $code An optional code for better debugging
132 public function __construct(array $msgArray, $code) {
133 // Prepare the message
134 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
135 $msgArray[0]->__toString(),
138 $msgArray[0]->getClassName()
142 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
144 // Call parent contructor with message
145 parent::__construct($message, $code);
153 * This exception is thrown when the default state is missing
155 * @author Roland Haeder <webmaster@ship-simu.org>
157 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
158 * @license GNU GPL 3.0 or any newer version
159 * @link http://www.ship-simu.org
161 * This program is free software: you can redistribute it and/or modify
162 * it under the terms of the GNU General Public License as published by
163 * the Free Software Foundation, either version 3 of the License, or
164 * (at your option) any later version.
166 * This program is distributed in the hope that it will be useful,
167 * but WITHOUT ANY WARRANTY; without even the implied warranty of
168 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
169 * GNU General Public License for more details.
171 * You should have received a copy of the GNU General Public License
172 * along with this program. If not, see <http://www.gnu.org/licenses/>.
174 class InvalidStateException extends FrameworkException {
176 * The super constructor for all exceptions
178 * @param $msgArray An array with message parts
179 * @param $code An optional code for better debugging
182 public function __construct(array $msgArray, $code) {
183 // Prepare the message
184 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
185 $msgArray[0]->__toString(),
188 $msgArray[0]->getClassName()
192 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
194 // Call parent contructor with message
195 parent::__construct($message, $code);
203 * This exception is thrown when the default state is missing
205 * @author Roland Haeder <webmaster@ship-simu.org>
207 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
208 * @license GNU GPL 3.0 or any newer version
209 * @link http://www.ship-simu.org
211 * This program is free software: you can redistribute it and/or modify
212 * it under the terms of the GNU General Public License as published by
213 * the Free Software Foundation, either version 3 of the License, or
214 * (at your option) any later version.
216 * This program is distributed in the hope that it will be useful,
217 * but WITHOUT ANY WARRANTY; without even the implied warranty of
218 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
219 * GNU General Public License for more details.
221 * You should have received a copy of the GNU General Public License
222 * along with this program. If not, see <http://www.gnu.org/licenses/>.
224 class InvalidStateException extends FrameworkException {
226 * The super constructor for all exceptions
228 * @param $msgArray An array with message parts
229 * @param $code An optional code for better debugging
232 public function __construct(array $msgArray, $code) {
233 // Prepare the message
234 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
235 $msgArray[0]->__toString(),
238 $msgArray[0]->getClassName()
242 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
244 // Call parent contructor with message
245 parent::__construct($message, $code);
253 * This exception is thrown when the default state is missing
255 * @author Roland Haeder <webmaster@ship-simu.org>
257 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
258 * @license GNU GPL 3.0 or any newer version
259 * @link http://www.ship-simu.org
261 * This program is free software: you can redistribute it and/or modify
262 * it under the terms of the GNU General Public License as published by
263 * the Free Software Foundation, either version 3 of the License, or
264 * (at your option) any later version.
266 * This program is distributed in the hope that it will be useful,
267 * but WITHOUT ANY WARRANTY; without even the implied warranty of
268 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
269 * GNU General Public License for more details.
271 * You should have received a copy of the GNU General Public License
272 * along with this program. If not, see <http://www.gnu.org/licenses/>.
274 class InvalidStateException extends FrameworkException {
276 * The super constructor for all exceptions
278 * @param $msgArray An array with message parts
279 * @param $code An optional code for better debugging
282 public function __construct(array $msgArray, $code) {
283 // Prepare the message
284 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
285 $msgArray[0]->__toString(),
288 $msgArray[0]->getClassName()
292 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
294 // Call parent contructor with message
295 parent::__construct($message, $code);
303 * This exception is thrown when the default state is missing
305 * @author Roland Haeder <webmaster@ship-simu.org>
307 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
308 * @license GNU GPL 3.0 or any newer version
309 * @link http://www.ship-simu.org
311 * This program is free software: you can redistribute it and/or modify
312 * it under the terms of the GNU General Public License as published by
313 * the Free Software Foundation, either version 3 of the License, or
314 * (at your option) any later version.
316 * This program is distributed in the hope that it will be useful,
317 * but WITHOUT ANY WARRANTY; without even the implied warranty of
318 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
319 * GNU General Public License for more details.
321 * You should have received a copy of the GNU General Public License
322 * along with this program. If not, see <http://www.gnu.org/licenses/>.
324 class InvalidStateException extends FrameworkException {
326 * The super constructor for all exceptions
328 * @param $msgArray An array with message parts
329 * @param $code An optional code for better debugging
332 public function __construct(array $msgArray, $code) {
333 // Prepare the message
334 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
335 $msgArray[0]->__toString(),
338 $msgArray[0]->getClassName()
342 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
344 // Call parent contructor with message
345 parent::__construct($message, $code);
353 * This exception is thrown when the default state is missing
355 * @author Roland Haeder <webmaster@ship-simu.org>
357 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
358 * @license GNU GPL 3.0 or any newer version
359 * @link http://www.ship-simu.org
361 * This program is free software: you can redistribute it and/or modify
362 * it under the terms of the GNU General Public License as published by
363 * the Free Software Foundation, either version 3 of the License, or
364 * (at your option) any later version.
366 * This program is distributed in the hope that it will be useful,
367 * but WITHOUT ANY WARRANTY; without even the implied warranty of
368 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
369 * GNU General Public License for more details.
371 * You should have received a copy of the GNU General Public License
372 * along with this program. If not, see <http://www.gnu.org/licenses/>.
374 class InvalidStateException extends FrameworkException {
376 * The super constructor for all exceptions
378 * @param $msgArray An array with message parts
379 * @param $code An optional code for better debugging
382 public function __construct(array $msgArray, $code) {
383 // Prepare the message
384 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
385 $msgArray[0]->__toString(),
388 $msgArray[0]->getClassName()
392 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
394 // Call parent contructor with message
395 parent::__construct($message, $code);
403 * This exception is thrown when the default state is missing
405 * @author Roland Haeder <webmaster@ship-simu.org>
407 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
408 * @license GNU GPL 3.0 or any newer version
409 * @link http://www.ship-simu.org
411 * This program is free software: you can redistribute it and/or modify
412 * it under the terms of the GNU General Public License as published by
413 * the Free Software Foundation, either version 3 of the License, or
414 * (at your option) any later version.
416 * This program is distributed in the hope that it will be useful,
417 * but WITHOUT ANY WARRANTY; without even the implied warranty of
418 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
419 * GNU General Public License for more details.
421 * You should have received a copy of the GNU General Public License
422 * along with this program. If not, see <http://www.gnu.org/licenses/>.
424 class InvalidStateException extends FrameworkException {
426 * The super constructor for all exceptions
428 * @param $msgArray An array with message parts
429 * @param $code An optional code for better debugging
432 public function __construct(array $msgArray, $code) {
433 // Prepare the message
434 $message = sprintf("[%s:%d] Cannot resolve state <span class=\"exception_reason\">%s (class name: %s)</span>.",
435 $msgArray[0]->__toString(),
438 $msgArray[0]->getClassName()
442 $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
444 // Call parent contructor with message
445 parent::__construct($message, $code);