DesktopPresentationException class

Namespace Runic.Desktop in Runic.Desktop 0.23.0

public sealed class DesktopPresentationException : DesktopException

Inherits or implements DesktopException.

Reports that every presentation of a window's fallback chain failed to open.

Remarks

DesktopSurface.OpenWindowAsync throws it when DesktopWindowOptions.Fallbacks or DesktopPresentationPolicy.EmbeddedThenBrowser names more than one presentation and none opened. DesktopException.Category, DesktopException.Code and DesktopException.Retryable are those of the last attempt, which is also the inner exception, so a handler of the single-presentation failure codes keeps working. A window that opened without connecting (connection-timeout) ends the chain with that failure instead.

Constructors

DesktopPresentationException

public DesktopPresentationException(IReadOnlyList<DesktopPresentationAttempt> attempts)

Creates the failure from the attempts, in the order they were made.

Parameters

attempts

The failed attempts; at least one.

Exceptions

ArgumentException

attempts is empty or contains null.

Properties

Attempts

public IReadOnlyList<DesktopPresentationAttempt> Attempts { get; }

Gets every presentation that was tried and why it failed, in the order they were tried.