Class VmException
The base exception class for all virtual machine runtime errors.
Implements
Inherited Members
Namespace: VM.Core.Instructions
Assembly: VM.dll
Syntax
public class VmException : Exception, ISerializable
Constructors
VmException(string, int, int)
The base exception class for all virtual machine runtime errors.
Declaration
public VmException(string message, int lineNumber = -1, int ip = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the reason for the exception. |
| int | lineNumber | The source line number where the error occurred (-1 if unknown). |
| int | ip | The instruction pointer value when the error occurred (-1 if unknown). |
Properties
InstructionPointer
Gets the instruction pointer value at the time of the error.
Declaration
public int InstructionPointer { get; }
Property Value
| Type | Description |
|---|---|
| int | -1 if the instruction pointer is unknown. |
LineNumber
Gets the source line number where the error occurred.
Declaration
public int LineNumber { get; }
Property Value
| Type | Description |
|---|---|
| int | -1 if the line number is unknown. |