Table of Contents

Class GraphicsException

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

An exception that is thrown when a graphics operation fails.

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

Remarks

This is the base class for all exceptions related to graphics operations. Look at more specific exceptions to better understand the nature of the error.

Constructors

GraphicsException()

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

public GraphicsException()

GraphicsException(string)

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

public GraphicsException(string message)

Parameters

message string

The error message that explains the reason for the exception.

GraphicsException(string?, Exception?)

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

public GraphicsException(string? message, Exception? innerException)

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.