NLua.Exceptions.LuaScriptException Class Reference

Exceptions thrown by the Lua runtime because of errors in the script More...

Inheritance diagram for NLua.Exceptions.LuaScriptException:
Collaboration diagram for NLua.Exceptions.LuaScriptException:

Public Member Functions

 LuaScriptException (string message, string source)
 Creates a new Lua-only exception. More...
 
 LuaScriptException (Exception innerException, string source)
 Creates a new .NET wrapping exception. More...
 
override string ToString ()
 
- Public Member Functions inherited from NLua.Exceptions.LuaException
 LuaException ()
 
 LuaException (string message)
 
 LuaException (string message, Exception innerException)
 

Properties

bool IsNetException [get]
 Returns true if the exception has occured as the result of a .NET exception in user code More...
 
override string Source [get]
 The position in the script where the exception was triggered. More...
 

Additional Inherited Members

- Protected Member Functions inherited from NLua.Exceptions.LuaException
 LuaException (SerializationInfo info, StreamingContext context)
 

Detailed Description

Exceptions thrown by the Lua runtime because of errors in the script

Constructor & Destructor Documentation

◆ LuaScriptException() [1/2]

NLua.Exceptions.LuaScriptException.LuaScriptException ( string  message,
string  source 
)

Creates a new Lua-only exception.

Parameters
messageThe message that describes the error.
sourceThe position in the script where the exception was triggered.

◆ LuaScriptException() [2/2]

NLua.Exceptions.LuaScriptException.LuaScriptException ( Exception  innerException,
string  source 
)

Creates a new .NET wrapping exception.

Parameters
innerExceptionThe .NET exception triggered by user-code.
sourceThe position in the script where the exception was triggered.

Member Function Documentation

◆ ToString()

override string NLua.Exceptions.LuaScriptException.ToString ( )

Property Documentation

◆ IsNetException

bool NLua.Exceptions.LuaScriptException.IsNetException
get

Returns true if the exception has occured as the result of a .NET exception in user code

◆ Source

override string NLua.Exceptions.LuaScriptException.Source
get

The position in the script where the exception was triggered.


The documentation for this class was generated from the following file: