From ad34d9b4910f62061fad2033d6c3753c00fbe048 Mon Sep 17 00:00:00 2001 From: AlexeyDsov Date: Fri, 18 May 2012 17:35:38 +0400 Subject: [PATCH] extended message MissingElementException Enum, Enumeration and AbstractProtoClass --- core/Base/Enum.class.php | 2 +- core/Base/Enumeration.class.php | 2 +- main/Base/AbstractProtoClass.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Base/Enum.class.php b/core/Base/Enum.class.php index 9c3df626ff..8d492aac13 100644 --- a/core/Base/Enum.class.php +++ b/core/Base/Enum.class.php @@ -49,7 +49,7 @@ protected function setInternalId($id) $this->name = static::$names[$id]; } else throw new MissingElementException( - 'knows nothing about such id == '.$id + get_class($this) . ' knows nothing about such id == '.$id ); return $this; diff --git a/core/Base/Enumeration.class.php b/core/Base/Enumeration.class.php index b838c83a36..4957d28a8d 100644 --- a/core/Base/Enumeration.class.php +++ b/core/Base/Enumeration.class.php @@ -92,7 +92,7 @@ public function setId($id) $this->name = $names[$id]; } else throw new MissingElementException( - 'knows nothing about such id == '.$id + get_class($this) . ' knows nothing about such id == '.$id ); return $this; diff --git a/main/Base/AbstractProtoClass.class.php b/main/Base/AbstractProtoClass.class.php index ebd9169266..733f730c06 100644 --- a/main/Base/AbstractProtoClass.class.php +++ b/main/Base/AbstractProtoClass.class.php @@ -184,7 +184,7 @@ public function getPropertyByName($name) return $property; throw new MissingElementException( - "unknown property requested by name '{$name}'" + get_class($this) . ": unknown property requested by name '{$name}'" ); }