fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6855] Added exceptions


From: Petur Thorsteinsson
Subject: [Fmsystem-commits] [6855] Added exceptions
Date: Thu, 27 Jan 2011 08:18:17 +0000

Revision: 6855
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6855
Author:   peturbjorn
Date:     2011-01-27 08:18:17 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
Added exceptions

Modified Paths:
--------------
    branches/dev-bim2/property/inc/class.bimExceptions.inc.php

Modified: branches/dev-bim2/property/inc/class.bimExceptions.inc.php
===================================================================
--- branches/dev-bim2/property/inc/class.bimExceptions.inc.php  2011-01-27 
08:17:32 UTC (rev 6854)
+++ branches/dev-bim2/property/inc/class.bimExceptions.inc.php  2011-01-27 
08:18:17 UTC (rev 6855)
@@ -25,4 +25,31 @@
     public function __toString() {
         return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
     }
+}
+class ModelDoesNotExistException extends Exception
+{
+    public function __construct($message, Exception $previous = null) {
+        parent::__construct($message, 0, $previous);
+    }
+    public function __toString() {
+        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
+    }
+}
+class IncompleteItemException extends Exception
+{
+    public function __construct($message, $code = 0) {
+        parent::__construct($message, $code);
+    }
+    public function __toString() {
+        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
+    }
+}
+class BimDataException extends Exception
+{
+    public function __construct($message, Exception $previous = null) {
+        parent::__construct($message, 0, $previous);
+    }
+    public function __toString() {
+        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
+    }
 }
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]