Table of Contents

Class StopAsyncIteration

Namespace
NumSharp
Assembly
NumSharp.dll

Python's StopAsyncIteration: an asynchronous iterator (anext) has no more items.

public class StopAsyncIteration : NumSharpException, ISerializable, INumSharpException
Inheritance
StopAsyncIteration
Implements
Inherited Members

Remarks

Unlike StopIteration it has no value attribute, as in Python. It derives from NumSharpException (an IAsyncEnumerator<T> ends by returning false); NumSharp never raises it, and the class exists for ports.

Constructors

StopAsyncIteration()

Creates the error with Python's text for a bare raise StopAsyncIteration: an empty Message, as str(StopAsyncIteration()) is ''.

public StopAsyncIteration()

StopAsyncIteration(string)

Creates the error with the port's message.

public StopAsyncIteration(string message)

Parameters

message string

The text, verbatim.

StopAsyncIteration(string, Exception)

Creates the error with a message and the exception that caused it: Python's raise StopAsyncIteration(message) from innerException, the cause kept in InnerException.

public StopAsyncIteration(string message, Exception innerException)

Parameters

message string

The text, verbatim.

innerException Exception

The exception that led to this one, or null for none.