Improve exception message of XmppElementUtil.getQNameFor()

This commit is contained in:
Florian Schmaus 2020-04-05 22:08:10 +02:00
parent 8d432e2303
commit 62916b8490
1 changed files with 2 additions and 2 deletions

View File

@ -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);