Class ExceptionHandler
- Namespace
- Shift.Common
- Assembly
- Shift.Common.dll
public class ExceptionHandler
- Inheritance
-
ExceptionHandler
- Inherited Members
-
- Extension Methods
-
Properties
Action
public ExceptionActionType Action { get; }
Property Value
- ExceptionActionType
ClearError
public bool ClearError { get; }
Property Value
- bool
RedirectUrl
public string RedirectUrl { get; }
Property Value
- string
Methods
FromArray(ExceptionHandlerSettings[])
public static ExceptionHandler[] FromArray(ExceptionHandlerSettings[] infos)
Parameters
infos ExceptionHandlerSettings[]
Returns
- ExceptionHandler[]
GetAction(Exception, string, IEnumerable<ExceptionHandler>)
public static ExceptionAction GetAction(Exception ex, string requestPath, IEnumerable<ExceptionHandler> handlers)
Parameters
ex Exception
requestPath string
handlers IEnumerable<ExceptionHandler>
Returns
- ExceptionAction
IsMatch(ExceptionHandlerData)
public bool IsMatch(ExceptionHandlerData data)
Parameters
data ExceptionHandlerData
Returns
- bool
TryCreate(ExceptionHandlerSettings, out ExceptionHandler)
public static bool TryCreate(ExceptionHandlerSettings info, out ExceptionHandler handler)
Parameters
info ExceptionHandlerSettings
handler ExceptionHandler
Returns
- bool