Show / Hide Table of Contents

Class AbpValidationException

Inheritance
object
System.Exception
AbpException
AbpValidationException
Implements
System.Runtime.Serialization.ISerializable
IHasLogLevel
IHasValidationErrors
IExceptionWithSelfLogging
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
IHasLogLevel
IHasValidationErrors
IExceptionWithSelfLogging

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft