org.luaj.vm
Class LuaErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.luaj.vm.LuaErrorException
All Implemented Interfaces:
java.io.Serializable

public class LuaErrorException
extends java.lang.RuntimeException

RuntimeException that is thrown and caught in response to a lua error. This error does not indicate any problem with the normal functioning of the Lua VM, but rather indicates that the lua script being interpreted has encountered a lua error, eigher via LuaState.error() or lua error() calls.

See Also:
Serialized Form

Constructor Summary
LuaErrorException()
          Construct a LuaErrorException with the default message.
LuaErrorException(LuaState vm, java.lang.String message, int level)
          Construct the message around a specific vm and with a particular level of debug info
LuaErrorException(java.lang.String message)
          Construct a LuaErrorException with a specific message.
LuaErrorException(java.lang.Throwable cause)
          Construct a LuaErrorException in response to a Throwable that was caught and with the default message.
 
Method Summary
 java.lang.Throwable getCause()
          Get the cause, if any.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LuaErrorException

public LuaErrorException()
Construct a LuaErrorException with the default message.


LuaErrorException

public LuaErrorException(java.lang.Throwable cause)
Construct a LuaErrorException in response to a Throwable that was caught and with the default message.


LuaErrorException

public LuaErrorException(java.lang.String message)
Construct a LuaErrorException with a specific message.

Parameters:
message - message to supply

LuaErrorException

public LuaErrorException(LuaState vm,
                         java.lang.String message,
                         int level)
Construct the message around a specific vm and with a particular level of debug info

Parameters:
vm -
message -
level - 0 for no message, >=1 for current call or above, -1 for most recent lua call
Method Detail

getCause

public java.lang.Throwable getCause()
Get the cause, if any.

Overrides:
getCause in class java.lang.Throwable


Copyright © 2007-2013 Luaj.org. All Rights Reserved.