All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.jmi.reflect.InvalidNameException Maven / Gradle / Ivy

There is a newer version: 2.18.10
Show newest version
package javax.jmi.reflect;

/** Thrown when a user pases an invalid feature name to a reflective method.
 */
@SuppressWarnings("serial")
public class InvalidNameException extends JmiException {
    
    private final String invalidName;
    
    /**
     * Constructs an InvalidNameException without detail message.
     * @param invalidName Invalid name.
     */
    public InvalidNameException(String invalidName) {
        this.invalidName = invalidName;
    }

    /**
     * Constructs an InvalidNameException with the specified detail message.
     * @param invalidName Invalid name.
     * @param msg the detail message.
     */
    public InvalidNameException(String invalidName, String msg) {
        super(msg);
        this.invalidName = invalidName;
    }
    
    /** Returns invalid name.
     * @return invalid name.
     */
    public String getInvalidName() {
        return invalidName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy