Skip to content

M_CodeJam_CodeExceptions_UnexpectedValue

Andrew Koryavchenko edited this page Jun 17, 2018 · 8 revisions

CodeExceptions.UnexpectedValue Method (String, Object[])

Creates InvalidOperationException. Used to be thrown from default: switch clause

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.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 InvalidOperationException.

See Also

Reference

CodeExceptions Class
UnexpectedValue Overload
CodeJam Namespace

Clone this wiki locally