Class GraphicsDeviceException
An exception that is thrown when a Graphics Device operation fails.
public class GraphicsDeviceException : GraphicsException, ISerializable
- Inheritance
-
objectGraphicsDeviceException
- 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
messagestringThe error message that explains the reason for the exception. Specify null to use the default message.
statusGraphicsDeviceStatusThe 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
messagestringThe error message that explains the reason for the exception. Specify null to use the default message.
innerExceptionExceptionThe exception that is the cause of the current exception, or a null reference if no inner exception is specified.
statusGraphicsDeviceStatus
Properties
Status
Gets the status of the Graphics Device when the exception occurred.
public GraphicsDeviceStatus Status { get; }