qse/ase/awk/Exception.java

52 lines
671 B
Java
Raw Normal View History

2006-10-24 06:03:14 +00:00
/*
2007-02-03 10:47:41 +00:00
* $Id: Exception.java,v 1.4 2007-02-03 10:47:40 bacon Exp $
*
* {License}
2006-10-24 06:03:14 +00:00
*/
package ase.awk;
public class Exception extends java.lang.Exception
{
2007-01-23 14:23:18 +00:00
private int code;
private int line;
public Exception ()
2006-10-24 06:03:14 +00:00
{
super ();
2007-01-23 14:23:18 +00:00
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;
2006-10-24 06:03:14 +00:00
}
2007-01-23 14:23:18 +00:00
public Exception (String msg, int code, int line)
2006-10-24 06:03:14 +00:00
{
super (msg);
2007-01-23 14:23:18 +00:00
this.code = code;
this.line = line;
2006-10-24 06:03:14 +00:00
}
2007-01-21 13:31:30 +00:00
2007-01-23 14:23:18 +00:00
public int getCode ()
{
return this.code;
}
public int getLine ()
{
return this.line;
}
2006-10-24 06:03:14 +00:00
}