Class CommandValidationException
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
messagestringlevelMessageLeveldetailsstring
Properties
Details
Optional detail shown with the notification.
public string? Details { get; }
Property Value
Level
The notification's level.
public MessageLevel Level { get; }