Table of Contents

Class DeviceLostException

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

The exception that is thrown when the device has been lost, but cannot be reset at this time. Therefore, rendering is not possible.

[DataContract]
public sealed class DeviceLostException : Exception, ISerializable
Inheritance
DeviceLostException
Implements
Inherited Members

Constructors

DeviceLostException()

Initializes a new instance of the DeviceLostException class.

public DeviceLostException()

DeviceLostException(string)

Initializes a new instance of the DeviceLostException class with a specified error message.

public DeviceLostException(string message)

Parameters

message string

The message that describes the error.

DeviceLostException(string, Exception)

Initializes a new instance of the DeviceLostException with a specified error message and a reference to the inner exception that is the cause of this exception.

public DeviceLostException(string message, Exception inner)

Parameters

message string

The message that describes the error.

inner Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.