Show / Hide Table of Contents

Class VmException

The base exception class for all virtual machine runtime errors.

Inheritance
object
Exception
VmException
VmMemoryException
VmStackException
VmTypeException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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.

Implements

ISerializable
In this article
Back to top Generated by DocFX