Table of Contents

Class GraphicsDeviceException

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

An exception that is thrown when a Graphics Device operation fails.

public class GraphicsDeviceException : GraphicsException, ISerializable
Inheritance
object
GraphicsDeviceException
Implements
Inherited Members
Extension Methods

Constructors

GraphicsDeviceException()

Initializes a new instance of the GraphicsException class with a default message and status.

public GraphicsDeviceException()

GraphicsDeviceException(string?, GraphicsDeviceStatus)

Initializes a new instance of the GraphicsException class with a specified error message and status.

public GraphicsDeviceException(string? message, GraphicsDeviceStatus status = GraphicsDeviceStatus.Normal)

Parameters

message string

The error message that explains the reason for the exception. Specify null to use the default message.

status GraphicsDeviceStatus

The status of the Graphics Device when the exception occurred.

GraphicsDeviceException(string?, Exception?, GraphicsDeviceStatus)

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

public GraphicsDeviceException(string? message, Exception? innerException, GraphicsDeviceStatus status = GraphicsDeviceStatus.Normal)

Parameters

message string

The error message that explains the reason for the exception. Specify null to use the default message.

innerException Exception

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

status GraphicsDeviceStatus

Properties

Status

Gets the status of the Graphics Device when the exception occurred.

public GraphicsDeviceStatus Status { get; }

Property Value

GraphicsDeviceStatus

See Also