Skip to content

M_CodeJam_CodeExceptions_UnexpectedValue

andrewvk edited this page Jun 23, 2016 · 8 revisions

CodeExceptions.UnexpectedValue Method (String, Object[])

Creates . Used to be thrown from default: switch clause

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static InvalidOperationException UnexpectedValue(
	string messageFormat,
	params Object[] args
)

VB

Public Shared Function UnexpectedValue ( 
	messageFormat As String,
	ParamArray args As Object()
) As InvalidOperationException

F#

static member UnexpectedValue : 
        messageFormat : string * 
        args : Object[] -> InvalidOperationException 

Parameters

 

messageFormat
Type: System.String
The message format.
args
Type: System.Object[]
The arguments.

Return Value

Type: InvalidOperationException
Initialized instance of

See Also

Reference

CodeExceptions Class
UnexpectedValue Overload
CodeJam Namespace
System.InvalidOperationException
System.InvalidOperationException

Clone this wiki locally