
com.github.lespaul361.commons.commonroutines.utilities.Streams.XML.AttributeExistsException Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.github.lespaul361.commons.commonroutines.utilities.Streams.XML;
/**
* An Exception
Fired when an Attribute
already
* exists
*
* @author Charles Hamilton
*/
public class AttributeExistsException extends Exception {
private final String attributeName;
/**
* Constructs a new AttributeExistsException
* @param attributeName the name of the existing attribute
*/
public AttributeExistsException(String attributeName) {
this.attributeName = attributeName;
}
@Override
/**
* Returns the detail message string of this Exception
.
*/
public String getMessage() {
return attributeName + " already exists";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy