Show / Hide Table of Contents

Class AuWndException

Exception thrown mostly by wnd functions.

public class AuWndException : AuException, ISerializable
Remarks

Some constructors support Windows API error code. Then Message also will contain its error description. If error code ERROR_INVALID_WINDOW_HANDLE, Message also depends on whether the window handle is 0. If parameter errorCode is 0 or not used: if the window handle is invalid, uses ERROR_INVALID_WINDOW_HANDLE. If the string passed to the constructor starts with "*", replaces the "*" with "Failed to ". If ends with "*", replaces the "*" with " window.". If does not end with ".", appends ".".


Namespace: Au.Types
Assembly: Au.dll
Inheritance
object
Exception
AuException
AuWndException
Inherited Members
AuException.NativeErrorCode
AuException.FormattedMessage
AuException.FormatMessage(string, string)
AuException.ThrowIfHresultNot0(int, string)
AuException.ThrowIfHresultNegative(int, string)
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState

Constructors

Name Description
AuWndException(wnd, int, string, Exception)

Sets NativeErrorCode = (errorCode != 0) ? errorCode : (w.IsAlive ? lastError.code : ERROR_INVALID_WINDOW_HANDLE). Sets Message = message + " " + lastError.messageFor(NativeErrorCode).

AuWndException(wnd, string, Exception)

Sets Message = message (default "Failed."). Sets NativeErrorCode = w.IsAlive ? 0 : ERROR_INVALID_WINDOW_HANDLE.

Properties

Name Description
Message

Gets error message.

Window

Gets the window passed to the constructor.

Extension Methods

ExtMisc.ToStringWithoutStack(Exception)