001package jmri.jmrit.logixng.util.parser;
002
003/**
004 * The class cannot be instanciated with the supplied parameters.
005 *
006 * @author Daniel Bergqvist   Copyright (C) 2022
007 */
008public class CannotCreateInstanceException extends ParserException {
009
010    private final String _methodName;
011
012    /**
013     * Constructs an instance of <code>CannotCreateInstanceException</code>
014     * with the specified detail message.
015     * @param msg the detail message.
016     * @param className the name of the class
017     */
018    public CannotCreateInstanceException(String msg, String className) {
019        super(msg);
020        _methodName = className;
021    }
022
023    public String getMethodName() {
024        return _methodName;
025    }
026
027}