ValidationError class

namespace: Serenity.Services   assemblySerenity.Net.Core

Generic validation error mostly used by services.

public class ValidationError : Exception, IIsSensitiveMessage

Public Members

name description
ValidationError() Initializes a new instance of the ValidationError class.
ValidationError(…) Initializes a new instance of the ValidationError class. (5 constructors)
Arguments { get; set; } Gets or sets the arguments.
ErrorCode { get; set; } Gets or sets the error code.
IsSensitiveMessage { get; set; } By default all ValidationErrors are end user exceptions (e.g. message can be shown safely to the end user)

See Also