Platform::Exception Class

Represents errors that occur during application execution. Custom exception classes can't be derived from Platform::Exception. If you require a custom exception, you can use Platform::COMException and specify an app-specific HRESULT.

public ref class Exception : Object,
    IException,
    IPrintable,
    IEquatable

The Exception class inherits from the Object class and the IException, IPrintable, and IEquatable interfaces.

The Exception class also has the following kinds of members.

Member

Description

Exception::Exception Constructor

Initializes a new instance of the Exception class.

The Exception class inherits the Equals(), Finalize(),GetHashCode(),GetType(),MemberwiseClose(), and ToString() methods from the Platform::Object Class. The Exception class also has the following method.

Member

Description

Exception::CreateException Method

Creates an exception that represents the specified HRESULT value.

The Exception class also has the following properties.

Member

Description

Exception::HResult Property

The HRESULT that corresponds to the exception.

Exception::Message Property

A message that describes the exception. This value is read-only and cannot be modified after the Exception is constructed.

Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Metadata: platform.winmd

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft