API Browser

Method

Box

func Box(message: string) -> ContextError<IError>

Declaring type: ErrorObjectExtensions
Namespace: System
Assembly: Raven.Core.dll
Source file: Error.rvn

Extension from ErrorObjectExtensions.Box

Boxes this error in a contextual error with the specified message.

Parameters

Name Type Description
self IError
message String The contextual message.

Return value

ContextError<IError>

A contextual error whose cause is this error.