Class BusinessException
Inheritance
System.Object
BusinessException
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
Implements
Extension Methods