Class AbpValidationException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.ToString()
System.Exception.GetType()
System.Exception.TargetSite
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.StackTrace
System.Exception.SerializeObjectState
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Validation
Assembly: Volo.Abp.Validation.Abstractions.dll
Syntax
public class AbpValidationException : AbpException, ISerializable, IHasLogLevel, IHasValidationErrors, IExceptionWithSelfLogging
Constructors
AbpValidationException()
Declaration
public AbpValidationException()
AbpValidationException(IList<ValidationResult>)
Declaration
public AbpValidationException(IList<ValidationResult> validationErrors)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<T><System.ComponentModel.DataAnnotations.ValidationResult> | validationErrors |
AbpValidationException(SerializationInfo, StreamingContext)
Declaration
public AbpValidationException(SerializationInfo serializationInfo, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | serializationInfo | |
System.Runtime.Serialization.StreamingContext | context |
AbpValidationException(string, IList<ValidationResult>)
Declaration
public AbpValidationException(string message, IList<ValidationResult> validationErrors)
Parameters
Type | Name | Description |
---|---|---|
string | message | |
System.Collections.Generic.IList<T><System.ComponentModel.DataAnnotations.ValidationResult> | validationErrors |
AbpValidationException(string, Exception)
Declaration
public AbpValidationException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | |
System.Exception | innerException |
AbpValidationException(string)
Declaration
public AbpValidationException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
Properties
LogLevel
Declaration
public LogLevel LogLevel { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Logging.LogLevel |
ValidationErrors
Declaration
public IList<ValidationResult> ValidationErrors { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<T><System.ComponentModel.DataAnnotations.ValidationResult> |
Methods
Log(ILogger)
Declaration
public void Log(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger | logger |
Implements
System.Runtime.Serialization.ISerializable