qse/ase/awk/Exception.java

52 lines
671 B
Java

/*
* $Id: Exception.java,v 1.4 2007-02-03 10:47:40 bacon Exp $
*
* {License}
*/
package ase.awk;
public class Exception extends java.lang.Exception
{
private int code;
private int line;
public Exception ()
{
super ();
this.code = 0;
this.line = 0;
}
public Exception (String msg)
{
super (msg);
this.code = 0;
this.line = 0;
}
public Exception (String msg, int code)
{
super (msg);
this.code = code;
this.line = 0;
}
public Exception (String msg, int code, int line)
{
super (msg);
this.code = code;
this.line = line;
}
public int getCode ()
{
return this.code;
}
public int getLine ()
{
return this.line;
}
}