Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
System.ThrowHelper Class Reference

Static Public Member Functions

static void ThrowArgumentValidationException< T > (ReadOnlySequenceSegment< T > startSegment, int startIndex, ReadOnlySequenceSegment< T > endSegment)
 
static void ThrowArgumentValidationException (Array array, int start)
 
static void ThrowStartOrEndArgumentValidationException (long start)
 

Static Package Functions

static void ThrowKeyNullException ()
 
static void ThrowArgumentNullException (string name)
 
static void ThrowArgumentNullException (string name, string message)
 
static void ThrowValueNullException ()
 
static void ThrowOutOfMemoryException ()
 
static void ThrowArgumentNullException (System.ExceptionArgument argument)
 
static void ThrowArgumentOutOfRangeException (System.ExceptionArgument argument)
 
static void ThrowInvalidOperationException ()
 
static void ThrowInvalidOperationException_EndPositionNotReached ()
 
static void ThrowArgumentOutOfRangeException_PositionOutOfRange ()
 
static void ThrowArgumentOutOfRangeException_OffsetOutOfRange ()
 
static void ThrowObjectDisposedException_ArrayMemoryPoolBuffer ()
 
static void ThrowArrayTypeMismatchException ()
 
static void ThrowInvalidTypeWithPointersNotSupported (Type targetType)
 
static void ThrowIndexOutOfRangeException ()
 
static void ThrowArgumentOutOfRangeException ()
 
static void ThrowArgumentException_DestinationTooShort ()
 
static void ThrowArgumentException_OverlapAlignmentMismatch ()
 
static void ThrowArgumentException_CannotExtractScalar (ExceptionArgument argument)
 
static void ThrowArgumentException_TupleIncorrectType (object obj)
 
static void ThrowArgumentOutOfRange_IndexException ()
 
static void ThrowArgumentException_BadComparer (object comparer)
 
static void ThrowIndexArgumentOutOfRange_NeedNonNegNumException ()
 
static void ThrowValueArgumentOutOfRange_NeedNonNegNumException ()
 
static void ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum ()
 
static void ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_Index ()
 
static void ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count ()
 
static void ThrowArgumentOutOfRange_Year ()
 
static void ThrowArgumentOutOfRange_Month (int month)
 
static void ThrowArgumentOutOfRange_DayNumber (int dayNumber)
 
static void ThrowArgumentOutOfRange_BadYearMonthDay ()
 
static void ThrowArgumentOutOfRange_BadHourMinuteSecond ()
 
static void ThrowArgumentOutOfRange_TimeSpanTooLong ()
 
static void ThrowWrongKeyTypeArgumentException< T > (T key, Type targetType)
 
static void ThrowWrongValueTypeArgumentException< T > (T value, Type targetType)
 
static void ThrowAddingDuplicateWithKeyArgumentException< T > (T key)
 
static void ThrowKeyNotFoundException< T > (T key)
 
static void ThrowArgumentException (ExceptionResource resource)
 
static void ThrowArgumentException (ExceptionResource resource, ExceptionArgument argument)
 
static void ThrowArgumentException_HandleNotSync (string paramName)
 
static void ThrowArgumentException_HandleNotAsync (string paramName)
 
static void ThrowArgumentNullException (ExceptionArgument argument)
 
static void ThrowArgumentNullException (ExceptionArgument argument, ExceptionResource resource)
 
static void ThrowArgumentOutOfRangeException (ExceptionArgument argument)
 
static void ThrowArgumentOutOfRangeException (ExceptionArgument argument, ExceptionResource resource)
 
static void ThrowArgumentOutOfRangeException (ExceptionArgument argument, int paramNumber, ExceptionResource resource)
 
static void ThrowEndOfFileException ()
 
static Exception CreateEndOfFileException ()
 
static void ThrowInvalidOperationException ()
 
static void ThrowInvalidOperationException (ExceptionResource resource)
 
static void ThrowInvalidOperationException (ExceptionResource resource, Exception e)
 
static void ThrowSerializationException (ExceptionResource resource)
 
static void ThrowRankException (ExceptionResource resource)
 
static void ThrowNotSupportedException (ExceptionResource resource)
 
static void ThrowNotSupportedException_UnseekableStream ()
 
static void ThrowNotSupportedException_UnreadableStream ()
 
static void ThrowNotSupportedException_UnwritableStream ()
 
static void ThrowObjectDisposedException_StreamClosed (string objectName)
 
static void ThrowObjectDisposedException_FileClosed ()
 
static void ThrowObjectDisposedException (ExceptionResource resource)
 
static void ThrowNotSupportedException ()
 
static void ThrowAggregateException (List< Exception > exceptions)
 
static void ThrowOutOfMemoryException ()
 
static void ThrowArgumentException_Argument_InvalidArrayType ()
 
static void ThrowArgumentException_InvalidHandle (string paramName)
 
static void ThrowInvalidOperationException_InvalidOperation_EnumNotStarted ()
 
static void ThrowInvalidOperationException_InvalidOperation_EnumEnded ()
 
static void ThrowInvalidOperationException_EnumCurrent (int index)
 
static void ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion ()
 
static void ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen ()
 
static void ThrowInvalidOperationException_InvalidOperation_NoValue ()
 
static void ThrowInvalidOperationException_ConcurrentOperationsNotSupported ()
 
static void ThrowInvalidOperationException_HandleIsNotInitialized ()
 
static void ThrowInvalidOperationException_HandleIsNotPinned ()
 
static void ThrowArraySegmentCtorValidationFailedExceptions (Array array, int offset, int count)
 
static void ThrowFormatException_BadFormatSpecifier ()
 
static void ThrowArgumentOutOfRangeException_PrecisionTooLarge ()
 
static void ThrowArgumentOutOfRangeException_SymbolDoesNotFit ()
 
static void ThrowArgumentOutOfRangeException_NeedNonNegNum (string paramName)
 
static void ArgumentOutOfRangeException_Enum_Value ()
 
static void IfNullAndNullsAreIllegalThenThrow< T > (object value, ExceptionArgument argName)
 
static void ThrowForUnsupportedNumericsVectorBaseType< T > ()
 
static void ThrowForUnsupportedIntrinsicsVectorBaseType< T > ()
 

Static Private Member Functions

static Exception CreateArgumentNullException (System.ExceptionArgument argument)
 
static Exception CreateArgumentOutOfRangeException (System.ExceptionArgument argument)
 
static Exception CreateInvalidOperationException ()
 
static Exception CreateInvalidOperationException_EndPositionNotReached ()
 
static Exception CreateArgumentOutOfRangeException_PositionOutOfRange ()
 
static Exception CreateArgumentOutOfRangeException_OffsetOutOfRange ()
 
static Exception CreateObjectDisposedException_ArrayMemoryPoolBuffer ()
 
static Exception CreateArgumentValidationException< T > (ReadOnlySequenceSegment< T > startSegment, int startIndex, ReadOnlySequenceSegment< T > endSegment)
 
static Exception CreateArgumentValidationException (Array array, int start)
 
static Exception CreateStartOrEndArgumentValidationException (long start)
 
static ArgumentException GetAddingDuplicateWithKeyArgumentException (object key)
 
static Exception GetArraySegmentCtorValidationFailedException (Array array, int offset, int count)
 
static ArgumentException GetArgumentException (ExceptionResource resource)
 
static InvalidOperationException GetInvalidOperationException (ExceptionResource resource)
 
static ArgumentException GetWrongKeyTypeArgumentException (object key, Type targetType)
 
static ArgumentException GetWrongValueTypeArgumentException (object value, Type targetType)
 
static KeyNotFoundException GetKeyNotFoundException (object key)
 
static ArgumentOutOfRangeException GetArgumentOutOfRangeException (ExceptionArgument argument, ExceptionResource resource)
 
static ArgumentException GetArgumentException (ExceptionResource resource, ExceptionArgument argument)
 
static ArgumentOutOfRangeException GetArgumentOutOfRangeException (ExceptionArgument argument, int paramNumber, ExceptionResource resource)
 
static InvalidOperationException GetInvalidOperationException_EnumCurrent (int index)
 
static string GetArgumentName (ExceptionArgument argument)
 
static string GetResourceString (ExceptionResource resource)
 

Detailed Description

Definition at line 5 of file ThrowHelper.cs.


The documentation for this class was generated from the following files: