Table of Contents

Class BusinessException

Namespace
Volo.Abp
Assembly
Volo.Abp.Core.dll
public class BusinessException : Exception, ISerializable, IBusinessException, IHasErrorCode, IHasErrorDetails, IHasLogLevel
Inheritance
BusinessException
Implements
Derived
Inherited Members
Extension Methods

Constructors

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

public BusinessException(string? code = null, string? message = null, string? details = null, Exception? innerException = null, LogLevel logLevel = LogLevel.Warning)

Parameters

code string
message string
details string
innerException Exception
logLevel LogLevel

Properties

Code

public string? Code { get; set; }

Property Value

string

Details

public string? Details { get; set; }

Property Value

string

LogLevel

Log severity.

public LogLevel LogLevel { get; set; }

Property Value

LogLevel

Methods

WithData(string, object)

public BusinessException WithData(string name, object value)

Parameters

name string
value object

Returns

BusinessException