-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_CodeExceptions
andrewvk edited this page Nov 5, 2016
·
12 revisions
Exception factory class
System.Object
CodeJam.CodeExceptions
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
public static class CodeExceptions
VB
<ExtensionAttribute>
Public NotInheritable Class CodeExceptions
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type CodeExceptions = class end
The CodeExceptions type exposes the following members.
Name | Description | |
---|---|---|
BreakOnException | If true, breaks execution if debugger is attached and assertion is failed. Enabled by default. | |
CodeTraceSource | Returns trace source for code exceptions. |
Name | Description | |
---|---|---|
Argument | Creates | |
ArgumentItemNull | Creates . | |
ArgumentNull | Creates . | |
ArgumentNullOrEmpty | Creates for empty string | |
ArgumentNullOrWhiteSpace | Creates for empty (or whitespace) string | |
ArgumentOutOfRange(String, Int32, Int32, Int32) | Creates | |
ArgumentOutOfRange(T)(String, T, T, T) | Creates | |
BreakIfAttached | BreaksExecution if debugger attached | |
IndexOutOfRange | Creates | |
InvalidOperation | Creates | |
ObjectDisposed(Type) | Throw this if the object is disposed. | |
ObjectDisposed(Type, String, Object[]) | Throw this if the object is disposed. | |
UnexpectedArgumentValue(T)(String, T) | Creates . Used to be thrown from the default: switch clause | |
UnexpectedArgumentValue(T)(String, T, String, Object[]) | Creates . Used to be thrown from default: switch clause | |
UnexpectedValue(String, Object[]) | Creates . Used to be thrown from default: switch clause | |
UnexpectedValue(T)(T) | Creates . Used to be thrown from the default: switch clause | |
Unreachable | Used to be thrown in places expected to be unreachable. |