package hu.mentlerd.hybrid;

public class LuaException extends RuntimeException{
	private static final long serialVersionUID = -8214311557059032574L;

	private Object luaCause;
	
	public LuaException( String message ) {
		super( message );
	}

	public LuaException( String message, Object cause ){
		this( message );
		this.luaCause = cause;
	}

	public Object getLuaCause(){
		if ( luaCause == null )
			return getMessage();
		
		return luaCause;
	}
}

@@ -305,20 +305,21 @@
 e )%7B%0D%0A%09%09
-this
+super
 ( messag
@@ -348,32 +348,98 @@
 = cause;%0D%0A%09%7D%0D%0A%0D%0A
+%09public LuaException( Throwable cause )%7B%0D%0A%09%09super(cause);%0D%0A%09%7D%0D%0A%09%0D%0A
 %09public Object g

Allow wrapping of other exceptions