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