MDL-83798 core_communication: include provider in exception messages

This commit is contained in:
Stephan Robotta
2025-03-05 08:54:44 +01:00
parent 5670447ece
commit c25db8ea78
+5 -5
View File
@@ -597,7 +597,7 @@ class processor {
*/
public function requires_form_features(): void {
if (!$this->supports_form_features()) {
throw new \coding_exception('Form features are not supported by the provider');
throw new \coding_exception('Form features are not supported by the provider ' . get_class($this->provider));
}
}
@@ -615,7 +615,7 @@ class processor {
*/
public function require_user_features(): void {
if (!$this->supports_user_features()) {
throw new \coding_exception('User features are not supported by the provider');
throw new \coding_exception('User features are not supported by the provider ' . get_class($this->provider));
}
}
@@ -642,7 +642,7 @@ class processor {
*/
public function require_room_features(): void {
if (!$this->supports_room_features()) {
throw new \coding_exception('room features are not supported by the provider');
throw new \coding_exception('room features are not supported by the provider ' . get_class($this->provider));
}
}
@@ -651,7 +651,7 @@ class processor {
*/
public function require_room_user_features(): void {
if (!$this->supports_room_user_features()) {
throw new \coding_exception('room features are not supported by the provider');
throw new \coding_exception('room user features are not supported by the provider ' . get_class($this->provider));
}
}
@@ -669,7 +669,7 @@ class processor {
*/
public function require_sync_provider_features(): void {
if (!$this->supports_sync_provider_features()) {
throw new \coding_exception('sync features are not supported by the provider');
throw new \coding_exception('sync features are not supported by the provider ' . get_class($this->provider));
}
}