Table of Contents

Class CommandValidationException

Namespace
The.Web.Pages
Assembly
Instagile.Web.Client.dll

Thrown by a command, causing it to fail and display a notification - for command-level checks that are not entity validation (a concurrency conflict, an authorization failure). Entity validation gates commands before they execute (see The.Web.Pages.CommandValidationRequirement) and does not use this exception.

public class CommandValidationException : ApplicationException, ISerializable
Inheritance
CommandValidationException
Implements
Inherited Members

Constructors

CommandValidationException(string, MessageLevel, string?)

Thrown by a command, causing it to fail and display a notification - for command-level checks that are not entity validation (a concurrency conflict, an authorization failure). Entity validation gates commands before they execute (see The.Web.Pages.CommandValidationRequirement) and does not use this exception.

public CommandValidationException(string message, MessageLevel level = MessageLevel.Error, string? details = null)

Parameters

message string
level MessageLevel
details string

Properties

Details

Optional detail shown with the notification.

public string? Details { get; }

Property Value

string

Level

The notification's level.

public MessageLevel Level { get; }

Property Value

MessageLevel