Method

WithContext

static func WithContext<TError>(self: TError, message: string) -> ContextError<TError> where TError: IError

Type: ErrorExtensions<TError>
Namespace: System
Assembly: Raven.Core.dll
Source file: Error.rvn

Wraps this error with an additional contextual message.

Parameters

Name Description
message The contextual message.

Returns

A contextual error whose cause is this error.