Show / Hide Table of Contents

Class BusinessException

Inheritance
object
Exception
BusinessException
UserFriendlyException
Implements
ISerializable
IBusinessException
IHasErrorCode
IHasErrorDetails
IHasLogLevel
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.ToString()
Exception.GetType()
Exception.TargetSite
Exception.Message
Exception.Data
Exception.InnerException
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.StackTrace
Exception.SerializeObjectState
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp
Assembly: Volo.Abp.Core.dll
Syntax
public class BusinessException : Exception, ISerializable, IBusinessException, IHasErrorCode, IHasErrorDetails, IHasLogLevel

Constructors

BusinessException(SerializationInfo, StreamingContext)

Declaration
public BusinessException(SerializationInfo serializationInfo, StreamingContext context)
Parameters
Type Name Description
SerializationInfo serializationInfo
StreamingContext context

BusinessException(string?, string?, string?, Exception?, LogLevel)

Declaration
public BusinessException(string? code = null, string? message = null, string? details = null, Exception? innerException = null, LogLevel logLevel = LogLevel.Warning)
Parameters
Type Name Description
string code
string message
string details
Exception innerException
LogLevel logLevel

Properties

Code

Declaration
public string? Code { get; set; }
Property Value
Type Description
string

Details

Declaration
public string? Details { get; set; }
Property Value
Type Description
string

LogLevel

Declaration
public LogLevel LogLevel { get; set; }
Property Value
Type Description
LogLevel

Methods

WithData(string, object)

Declaration
public BusinessException WithData(string name, object value)
Parameters
Type Name Description
string name
object value
Returns
Type Description
BusinessException

Implements

ISerializable
IBusinessException
IHasErrorCode
IHasErrorDetails
IHasLogLevel

Extension Methods

AbpExceptionExtensions.GetLogLevel(Exception, LogLevel)
AbpExceptionExtensions.ReThrow(Exception)
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>>)
HasLogLevelExtensions.WithLogLevel<TException>(TException, LogLevel)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by Volosoft