Class AbpExceptionExtensions
Extension methods for
Inheritance
System.Object
AbpExceptionExtensions
Namespace: System
Assembly: Volo.Abp.Core.dll
Syntax
public static class AbpExceptionExtensions : object
Methods
GetLogLevel(Exception, LogLevel)
Try to get a log level from the given exception
if it implements the IHasLogLevel interface.
Otherwise, returns the defaultLevel.
Declaration
public static LogLevel GetLogLevel(this Exception exception, LogLevel defaultLevel = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception | |
| LogLevel | defaultLevel |
Returns
| Type | Description |
|---|---|
| LogLevel |
ReThrow(Exception)
Uses
Declaration
public static void ReThrow(this Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception | Exception to be re-thrown |