* </ul>
*
* @param arg grouping object
- * @throws IllegalArgumentException if given argument is none of valid types or has property with incompatible value
+ * @throws «IAE.importedName» if given argument is none of valid types or has property with incompatible value
*/
'''
*
* @param augmentation augmentation to be added
* @return this builder
- * @throws NullPointerException if {@code augmentation} is null
+ * @throws «NPE.importedName» if {@code augmentation} is null
*/
public «type.name» addAugmentation(«augmentTypeRef» augmentation) {
if (!(this.«AUGMENTATION_FIELD» instanceof «hashMapRef»)) {
def protected bitsArgs() '''
«JU_LIST.importedName»<«STRING.importedName»> properties = «Lists.importedName».newArrayList(«allProperties.propsAsArgs»);
if (!properties.contains(defaultValue)) {
- throw new «IllegalArgumentException.importedName»("invalid default parameter");
+ throw new «IAE.importedName»("invalid default parameter");
}
int i = 0;
return new «genTO.name»(
*
* @param name YANG assigned name
* @return corresponding «enums.name» item, or {@code null} if no such item exists
- * @throws NullPointerException if {@code name} is null
+ * @throws «NPE.importedName» if {@code name} is null
*/
public static «enums.importedNullable» forName(«STRING.importedName» name) {
return switch (name) {
*
* @param name YANG assigned name
* @return corresponding «enums.name» item
- * @throws NullPointerException if {@code name} is null
- * @throws IllegalArgumentException if {@code name} does not match any item
+ * @throws «NPE.importedName» if {@code name} is null
+ * @throws «IAE.importedName» if {@code name} does not match any item
*/
public static «enums.importedNonNull» ofName(«STRING.importedName» name) {
return «CODEHELPERS.importedName».checkEnum(forName(name), name);
*
* @param intValue integer value
* @return corresponding «enums.name» item
- * @throws IllegalArgumentException if {@code intValue} does not match any item
+ * @throws «IAE.importedName» if {@code intValue} does not match any item
*/
public static «enums.importedNonNull» ofValue(int intValue) {
return «CODEHELPERS.importedName».checkEnum(forValue(intValue), intValue);
* {@code java.lang.Deprecated} as a JavaTypeName.
*/
static final @NonNull JavaTypeName DEPRECATED = JavaTypeName.create(Deprecated.class);
+ /**
+ * {@code java.lang.IllegalArgumentException} as a JavaTypeName.
+ */
+ static final @NonNull JavaTypeName IAE = JavaTypeName.create(IllegalArgumentException.class);
/**
* {@code java.lang.NullPointerException} as a JavaTypeName.
*/