Show / Hide Table of Contents

Class AbpExceptionExtensions

Extension methods for class.

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 method to re-throws exception while preserving stack trace.

Declaration
public static void ReThrow(this Exception exception)
Parameters
Type Name Description
Exception exception

Exception to be re-thrown

Back to top Powered by Volosoft