Skip to content

T_CodeJam_CodeExceptions

andrewvk edited this page Apr 22, 2016 · 12 revisions

CodeExceptions Class

[This is preliminary documentation and is subject to change.]

Exception factory class

Inheritance Hierarchy

System.Object
  CodeJam.CodeExceptions
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static class CodeExceptions

VB

Public NotInheritable Class CodeExceptions

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
type CodeExceptions =  class end

The CodeExceptions type exposes the following members.

Properties

 

Name Description
Public propertyStatic member BreakOnException If true, breaks execution if debugger is attached and assertion is failed. Enabled by default.
  Back to Top

Methods

 

Name Description
Public methodStatic member Argument Creates
Public methodStatic member ArgumentNull Creates .
Public methodStatic member ArgumentNullOrEmpty Creates for empty string
Public methodStatic member ArgumentNullOrWhiteSpace Creates for empty (or whitespace) string
Public methodStatic member ArgumentOutOfRange(String, Int32, Int32, Int32) Creates
Public methodStatic member ArgumentOutOfRange(T)(String, T, T, T) Creates
Public methodStatic member BreakIfAttached BreaksExecution if debugger attached
Public methodStatic member IndexOutOfRange Creates
Public methodStatic member InvalidOperation Creates
Public methodStatic member ObjectDisposed(Type) Throw this if the object is disposed.
Public methodStatic member ObjectDisposed(Type, String, Object[]) Throw this if the object is disposed.
Public methodStatic member UnexpectedArgumentValue(T)(String, T) Creates . Used to be thrown from the default: switch clause
Public methodStatic member UnexpectedArgumentValue(T)(String, T, String, Object[]) Creates . Used to be thrown from default: switch clause
Public methodStatic member UnexpectedValue(String, Object[]) Creates . Used to be thrown from default: switch clause
Public methodStatic member UnexpectedValue(T)(T) Creates . Used to be thrown from the default: switch clause
Public methodStatic member Unreachable Used to be thrown in places expected to be unreachable.
  Back to Top

See Also

Reference

CodeJam Namespace

Clone this wiki locally