Skip to content

Methods_T_CodeJam_CodeExceptions

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

CodeExceptions Methods

The CodeExceptions type exposes the following members.

Methods

 

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

See Also

Reference

CodeExceptions Class
CodeJam Namespace

Clone this wiki locally