mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Improve exception message of XmppElementUtil.getQNameFor()
This commit is contained in:
parent
8d432e2303
commit
62916b8490
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2018-2019 Florian Schmaus
|
||||
* Copyright 2018-2020 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -49,7 +49,7 @@ public class XmppElementUtil {
|
|||
namespace = (String) fullyQualifiedElement.getField("NAMESPACE").get(null);
|
||||
}
|
||||
catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
throw new IllegalArgumentException("The class" + fullyQualifiedElement + " has no ELEMENT, NAMSEPACE or QNAME member. Consider adding QNAME", e);
|
||||
}
|
||||
|
||||
return new QName(namespace, element);
|
||||
|
|
Loading…
Reference in a new issue