org.asteriskjava.config.ConfigParseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
package org.asteriskjava.config;
/**
*
*/
public class ConfigParseException extends Exception
{
private static final long serialVersionUID = 4346366210261425734L;
private final String filename;
private final int lineno;
public ConfigParseException(String filename, int lineno, String message)
{
super(message);
this.filename = filename;
this.lineno = lineno;
}
public ConfigParseException(String filename, int lineno, String format, Object... params)
{
super(String.format(format, params));
this.filename = filename;
this.lineno = lineno;
}
public String getFileName()
{
return filename;
}
public int getLineNumber()
{
return lineno;
}
}