fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6772] Class with exceptions created


From: Petur Bjorn Thorsteinsson
Subject: [Fmsystem-commits] [6772] Class with exceptions created
Date: Fri, 14 Jan 2011 13:50:53 +0000

Revision: 6772
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6772
Author:   peturbjorn
Date:     2011-01-14 13:50:53 +0000 (Fri, 14 Jan 2011)
Log Message:
-----------
Class with exceptions created

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

Added: branches/dev-bim2/property/inc/class.bimExceptions.inc.php
===================================================================
--- branches/dev-bim2/property/inc/class.bimExceptions.inc.php                  
        (rev 0)
+++ branches/dev-bim2/property/inc/class.bimExceptions.inc.php  2011-01-14 
13:50:53 UTC (rev 6772)
@@ -0,0 +1,28 @@
+<?php
+class FileExistsException extends Exception
+{
+    public function __construct($message, $code = 0) {
+        parent::__construct($message, $code);
+    }
+    public function __toString() {
+        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
+    }
+}
+class CopyFailureException extends Exception
+{
+    public function __construct($message, $code = 0) {
+        parent::__construct($message, $code);
+    }
+    public function __toString() {
+        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
+    }
+}
+class ModelExistsException extends Exception
+{
+    public function __construct($message, $code = 0) {
+        parent::__construct($message, $code);
+    }
+    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]