Share via


GraphicsException Class (Microsoft.DirectX.DirectDraw)

Warning: This class is deprecated. Deprecated components of Microsoft DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.

Base exception class for all DirectDraw exceptions. Derives from DirectXException. Deprecated.

Definition

Visual Basic Public Class GraphicsException
    Inherits DirectXException
C# public class GraphicsException : DirectXException
C++ public ref class GraphicsException : DirectXException
JScript public class GraphicsException extends DirectXException

Members Table

The following table lists the members exposed by the object.

Fields

Field Description
static (Shared in Visual Basic) IsExceptionIgnored Specifies whether DirectX 9.0 for Managed Code exceptions are enabled or disabled. Inherited from DirectXException.

Methods

Method Description
static (Shared in Visual Basic) EnableExceptions Enables DirectX 9.0 for Managed Code exception throwing. Inherited from DirectXException.
static (Shared in Visual Basic) GetDirectXErrorString Retrieves a string that contains the name of the DirectX error code. Inherited from DirectXException.
static (Shared in Visual Basic) GetExceptionFromResultInternal
Warning: This method is deprecated. Deprecated components of DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Deprecated.
GraphicsException
Warning: This method is deprecated. Deprecated components of DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Initializes a new instance of the object. Deprecated.
static (Shared in Visual Basic) IgnoreExceptions Disables DirectX 9.0 for Managed Code exception throwing. Inherited from DirectXException.
ToString Obtains the string representation of the current instance. Inherited from DirectXException.

Properties

Property Description
ErrorCode Retrieves or sets the integer value result code. Inherited from DirectXException.
ErrorString Retrieves the error string that is specific to DirectX 9.0 for Managed Code. Inherited from DirectXException.
static (Shared in Visual Basic) LastError Retrieves the error status for the last operation that failed. Inherited from DirectXException.

Inheritance Hierarchy

ObjectLeave Site

ExceptionLeave Site

ApplicationExceptionLeave Site

DirectXException

GraphicsException

CannotCloneException

CannotCreateDeviceContextException

CannotLockSurfaceException

CannotPageLockException

CannotPageUnlockException

CapsComplexRequiredException

ClipperIsUsingWindowException

ColorKeyNotSetException

CurrentlyNotAvailableException

DeviceDoesNotOwnSurfaceException

DrawFastCannotClipException

ExclusiveModeAlreadySetException

ExpiredException

GraphicsAlreadyCreatedException

HeightAlignException

ImplicitlyCreatedException

IncompatiblePrimaryException

InvalidCapsException

InvalidClipListException

InvalidDirectDrawGuidException

InvalidModeException

InvalidObjectException

InvalidPixelFormatException

InvalidPositionException

InvalidRectangleException

InvalidStreamException

InvalidSurfaceTypeException

LockedSurfacesException

MoreDataException

NewModeException

NoAlphaHardwareException

NoClipListException

NoClipperAttachedException

NoColorConversionHardwareException

NoColorKeyException

NoColorKeyHardwareException

NoCooperativeLevelSetException

NoDeviceContextException

NoDirectDrawHardwareException

NoDirectDrawSupportException

NoDrawHardwareException

NoDriverSupportException

NoEmulationException

NoExclusiveModeException

NoFlipHardwareException

NoFocusWindowException

NoGdiException

NoMirrorHardwareException

NoMonitorInformationException

NoNonLocalVideoMemoryException

NoOptimizeHardwareException

NoOverlayDestinationException

NoOverlayHardwareException

NoPaletteAttachedException

NoPaletteHardwareException

NoRasterOperationHardwareException

NoRotationHardwareException

NoStereoHardwareException

NoStretchHardwareException

NoSurfaceLeftException

Not4BitColorException

Not4BitColorIndexException

Not8BitColorException

NotAnOverlaySurfaceException

NotFlippableException

NotFoundException

NotLoadedException

NotLockedException

NotPageLockedException

NotPalettizedException

NoVideoSyncHardwareException

NoWindowException

OutOfCapsException

OutOfVideoMemoryException

OverlappingRectanglesException

OverlayCantClipException

OverlayColorKeyOnlyOneActiveException

OverlayNotVisibleException

PaletteBusyException

PrimarySurfaceAlreadyExistsException

RegionTooSmallException

SurfaceBusyException

SurfaceIsObscuredException

SurfaceLostException

SurfaceNotAttachedException

TestFinishedException

TooBigHeightException

TooBigSizeException

TooBigWidthException

UnsupportedException

UnsupportedFormatException

UnsupportedMaskException

UnsupportedModeException

VerticalBlankInProgressException

VideoNotActiveException

WasStillDrawingException

WindowAlreadySetException

WindowSubclassedException

WrongModeException

XAlignException

Class Information

Namespace Microsoft.DirectX.DirectDraw
Assembly Microsoft.DirectX.DirectDraw (microsoft.directx.directdraw.dll)
Strong Name Microsoft.DirectX.DirectDraw,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492