[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6992] merge from bim-branch
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6992] merge from bim-branch |
Date: |
Wed, 16 Feb 2011 09:24:34 +0000 |
Revision: 6992
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6992
Author: sigurdne
Date: 2011-02-16 09:24:34 +0000 (Wed, 16 Feb 2011)
Log Message:
-----------
merge from bim-branch
Added Paths:
-----------
trunk/bim/inc/class.bimExceptions.inc.php
Copied: trunk/bim/inc/class.bimExceptions.inc.php (from rev 6991,
branches/dev-bim2/property/inc/class.bimExceptions.inc.php)
===================================================================
--- trunk/bim/inc/class.bimExceptions.inc.php (rev 0)
+++ trunk/bim/inc/class.bimExceptions.inc.php 2011-02-16 09:24:34 UTC (rev
6992)
@@ -0,0 +1,64 @@
+<?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";
+ }
+}
+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";
+ }
+}
+class NoResponseException 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6992] merge from bim-branch,
Sigurd Nes <=