Show / Hide Table of Contents

# Class MemoryException

The base exception when thrown from Dalamud.Memory.

##### Inheritance

System.Object
System.Exception
MemoryException
MemoryAllocationException
MemoryPermissionException
MemoryReadException
MemoryWriteException

##### Implements

System.Runtime.Serialization.ISerializable

##### Inherited Members

System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)

###### Namespace: Dalamud.Memory.Exceptions

###### Assembly: Dalamud.dll

##### Syntax

    public abstract class MemoryException : Exception, ISerializable

### Constructors

| Improve this Doc View Source

#### MemoryException()

Initializes a new instance of the MemoryException class.

##### Declaration

    public MemoryException()

| Improve this Doc View Source

#### MemoryException(SerializationInfo, StreamingContext)

Initializes a new instance of the MemoryException class.

##### Declaration

    protected MemoryException(SerializationInfo info, StreamingContext context)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized data about the exception being thrown.
System.Runtime.Serialization.StreamingContext | context | The object that contains contextual information about the source or destination.

| Improve this Doc View Source

#### MemoryException(String)

Initializes a new instance of the MemoryException class.

##### Declaration

    public MemoryException(string message)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | message | The message that describes the error.

| Improve this Doc View Source

#### MemoryException(String, Exception)

Initializes a new instance of the MemoryException class.

##### Declaration

    public MemoryException(string message, Exception innerException)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | message | The error message that explains the reason for the exception.
System.Exception | innerException | The exception that is the cause of the current exception.

### Implements

System.Runtime.Serialization.ISerializable