onArraySliceError

fnnoreturn onArraySliceError( size_t lower = 0, size_t upper = 0, size_t length = 0, string file = __FILE__, size_t line = __LINE__ ) @trusted pure nothrow @nogc

A callback for array slice out of bounds errors in D.

Parameters

lowerthe lower bound of the index passed of a slice
upperthe upper bound of the index passed of a slice or the index if not a slice
lengthlength of the array
fileThe name of the file that signaled this error.
lineThe line number on which this error occurred.

Throws