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}'" ); }