52 lines
675 B
Java
52 lines
675 B
Java
/*
|
|
* $Id: Exception.java,v 1.1.1.1 2007/03/28 14:05:12 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;
|
|
}
|
|
}
|