MDL-83798 core_communication: include provider in exception messages
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user