Show / Hide Table of Contents

Class BusinessException

Inheritance
System.Object
BusinessException
UserFriendlyException
Implements
IBusinessException
IHasErrorCode
IHasErrorDetails
IHasLogLevel
Namespace: Volo.Abp
Assembly: Volo.Abp.Core.dll
Syntax
public class BusinessException : Exception, IBusinessException, IHasErrorCode, IHasErrorDetails, IHasLogLevel

Constructors

BusinessException(SerializationInfo, StreamingContext)

Constructor for serializing.

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 = null)
Parameters
Type Name Description
System.String code
System.String message
System.String details
Exception innerException
LogLevel logLevel

Properties

Code

Declaration
public string Code { get; set; }
Property Value
Type Description
System.String

Details

Declaration
public string Details { get; set; }
Property Value
Type Description
System.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
System.String name
System.Object value
Returns
Type Description
BusinessException

Implements

IBusinessException
IHasErrorCode
IHasErrorDetails
IHasLogLevel

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
HasLogLevelExtensions.WithLogLevel<TException>(TException, LogLevel)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft