Skip to content

M_CodeJam_PerfTests_Running_Core_CompetitionCore_WriteExceptionMessage

andrewvk edited this page Nov 8, 2016 · 2 revisions

CompetitionCore.WriteExceptionMessage Method

Writes the setup exception message.

Namespace: CodeJam.PerfTests.Running.Core
Assembly: CodeJam.PerfTests (in CodeJam.PerfTests.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public static void WriteExceptionMessage(
	this CompetitionState competitionState,
	MessageSource messageSource,
	MessageSeverity messageSeverity,
	string message,
	Exception ex
)

VB

<ExtensionAttribute>
Public Shared Sub WriteExceptionMessage ( 
	competitionState As CompetitionState,
	messageSource As MessageSource,
	messageSeverity As MessageSeverity,
	message As String,
	ex As Exception
)

F#

[<ExtensionAttribute>]
static member WriteExceptionMessage : 
        competitionState : CompetitionState * 
        messageSource : MessageSource * 
        messageSeverity : MessageSeverity * 
        message : string * 
        ex : Exception -> unit 

Parameters

 

competitionState
Type: CodeJam.PerfTests.Running.Core.CompetitionState
State of the run.
messageSource
Type: CodeJam.PerfTests.Running.Messages.MessageSource
Source of the message.
messageSeverity
Type: CodeJam.PerfTests.Running.Messages.MessageSeverity
Severity of the message.
message
Type: System.String
The explanation for the exception.
ex
Type: System.Exception
The exception to write.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CompetitionState. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

CompetitionCore Class
CodeJam.PerfTests.Running.Core Namespace

Clone this wiki locally