Table of Contents

Class ScriptRuntimeException

Namespace
MoonSharp.Interpreter
Assembly
Assembly-CSharp.dll
public class ScriptRuntimeException : InterpreterException, ISerializable
Inheritance
ScriptRuntimeException
Implements
Derived
Inherited Members
Extension Methods

Constructors

ScriptRuntimeException(ScriptRuntimeException)

public ScriptRuntimeException(ScriptRuntimeException ex)

Parameters

ex ScriptRuntimeException

ScriptRuntimeException(Exception)

public ScriptRuntimeException(Exception ex)

Parameters

ex Exception

ScriptRuntimeException(string)

public ScriptRuntimeException(string message)

Parameters

message string

ScriptRuntimeException(string, params object[])

public ScriptRuntimeException(string format, params object[] args)

Parameters

format string
args object[]

Methods

AccessInstanceMemberOnStatics(IMemberDescriptor)

public static ScriptRuntimeException AccessInstanceMemberOnStatics(IMemberDescriptor desc)

Parameters

desc IMemberDescriptor

Returns

ScriptRuntimeException

AccessInstanceMemberOnStatics(IUserDataDescriptor, IMemberDescriptor)

public static ScriptRuntimeException AccessInstanceMemberOnStatics(IUserDataDescriptor typeDescr, IMemberDescriptor desc)

Parameters

typeDescr IUserDataDescriptor
desc IMemberDescriptor

Returns

ScriptRuntimeException

ArithmeticOnNonNumber(DynValue, DynValue)

public static ScriptRuntimeException ArithmeticOnNonNumber(DynValue l, DynValue r = null)

Parameters

l DynValue
r DynValue

Returns

ScriptRuntimeException

AttemptToCallNonFunc(DataType, string)

public static ScriptRuntimeException AttemptToCallNonFunc(DataType type, string debugText = null)

Parameters

type DataType
debugText string

Returns

ScriptRuntimeException

BadArgument(int, string, DataType, DataType, bool)

public static ScriptRuntimeException BadArgument(int argNum, string funcName, DataType expected, DataType got, bool allowNil)

Parameters

argNum int
funcName string
expected DataType
got DataType
allowNil bool

Returns

ScriptRuntimeException

BadArgument(int, string, string)

public static ScriptRuntimeException BadArgument(int argNum, string funcName, string message)

Parameters

argNum int
funcName string
message string

Returns

ScriptRuntimeException

BadArgument(int, string, string, string, bool)

public static ScriptRuntimeException BadArgument(int argNum, string funcName, string expected, string got, bool allowNil)

Parameters

argNum int
funcName string
expected string
got string
allowNil bool

Returns

ScriptRuntimeException

BadArgumentIndexOutOfRange(string, int)

public static ScriptRuntimeException BadArgumentIndexOutOfRange(string funcName, int argNum)

Parameters

funcName string
argNum int

Returns

ScriptRuntimeException

BadArgumentNoNegativeNumbers(int, string)

public static ScriptRuntimeException BadArgumentNoNegativeNumbers(int argNum, string funcName)

Parameters

argNum int
funcName string

Returns

ScriptRuntimeException

BadArgumentNoValue(int, string, DataType)

public static ScriptRuntimeException BadArgumentNoValue(int argNum, string funcName, DataType expected)

Parameters

argNum int
funcName string
expected DataType

Returns

ScriptRuntimeException

BadArgumentUserData(int, string, Type, object, bool)

public static ScriptRuntimeException BadArgumentUserData(int argNum, string funcName, Type expected, object got, bool allowNil)

Parameters

argNum int
funcName string
expected Type
got object
allowNil bool

Returns

ScriptRuntimeException

BadArgumentValueExpected(int, string)

public static ScriptRuntimeException BadArgumentValueExpected(int argNum, string funcName)

Parameters

argNum int
funcName string

Returns

ScriptRuntimeException

CannotResumeNotSuspended(CoroutineState)

public static ScriptRuntimeException CannotResumeNotSuspended(CoroutineState state)

Parameters

state CoroutineState

Returns

ScriptRuntimeException

CannotYield()

public static ScriptRuntimeException CannotYield()

Returns

ScriptRuntimeException

CannotYieldMain()

public static ScriptRuntimeException CannotYieldMain()

Returns

ScriptRuntimeException

CompareInvalidType(DynValue, DynValue)

public static ScriptRuntimeException CompareInvalidType(DynValue l, DynValue r)

Parameters

l DynValue
r DynValue

Returns

ScriptRuntimeException

ConcatOnNonString(DynValue, DynValue)

public static ScriptRuntimeException ConcatOnNonString(DynValue l, DynValue r)

Parameters

l DynValue
r DynValue

Returns

ScriptRuntimeException

ConvertObjectFailed(DataType)

public static ScriptRuntimeException ConvertObjectFailed(DataType t)

Parameters

t DataType

Returns

ScriptRuntimeException

ConvertObjectFailed(DataType, Type)

public static ScriptRuntimeException ConvertObjectFailed(DataType t, Type t2)

Parameters

t DataType
t2 Type

Returns

ScriptRuntimeException

ConvertObjectFailed(object)

public static ScriptRuntimeException ConvertObjectFailed(object obj)

Parameters

obj object

Returns

ScriptRuntimeException

ConvertToNumberFailed(int)

public static ScriptRuntimeException ConvertToNumberFailed(int stage)

Parameters

stage int

Returns

ScriptRuntimeException

IndexType(DynValue)

public static ScriptRuntimeException IndexType(DynValue obj)

Parameters

obj DynValue

Returns

ScriptRuntimeException

LenOnInvalidType(DynValue)

public static ScriptRuntimeException LenOnInvalidType(DynValue r)

Parameters

r DynValue

Returns

ScriptRuntimeException

LoopInCall()

public static ScriptRuntimeException LoopInCall()

Returns

ScriptRuntimeException

LoopInIndex()

public static ScriptRuntimeException LoopInIndex()

Returns

ScriptRuntimeException

LoopInNewIndex()

public static ScriptRuntimeException LoopInNewIndex()

Returns

ScriptRuntimeException

Rethrow()

public override void Rethrow()

TableIndexIsNaN()

public static ScriptRuntimeException TableIndexIsNaN()

Returns

ScriptRuntimeException

TableIndexIsNil()

public static ScriptRuntimeException TableIndexIsNil()

Returns

ScriptRuntimeException

UserDataArgumentTypeMismatch(DataType, Type)

public static ScriptRuntimeException UserDataArgumentTypeMismatch(DataType t, Type clrType)

Parameters

t DataType
clrType Type

Returns

ScriptRuntimeException

UserDataMissingField(string, string)

public static ScriptRuntimeException UserDataMissingField(string typename, string fieldname)

Parameters

typename string
fieldname string

Returns

ScriptRuntimeException