Class StopIteration
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.timefold.jpyinterpreter.types.errors.PythonBaseException
ai.timefold.jpyinterpreter.types.errors.PythonException
ai.timefold.jpyinterpreter.types.errors.StopIteration
- All Implemented Interfaces:
PythonLikeObject,Serializable
Error thrown when a Python iterator has no more values to return.
- See Also:
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.errors.PythonException
EXCEPTION_TYPEFields inherited from class ai.timefold.jpyinterpreter.types.errors.PythonBaseException
BASE_EXCEPTION_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionStopIteration(PythonLikeObject value) StopIteration(PythonLikeType type, List<PythonLikeObject> args) -
Method Summary
Modifier and TypeMethodDescriptionThis exception acts as a signal, and should be low costgetValue()Methods inherited from class ai.timefold.jpyinterpreter.types.errors.PythonBaseException
$deleteAttribute, $getArgs, $getAttributeOrNull, $getType, $setAttribute, initCauseMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__, $method$__str__
-
Field Details
-
STOP_ITERATION_TYPE
-
$TYPE
-
-
Constructor Details
-
StopIteration
public StopIteration() -
StopIteration
-
StopIteration
-
-
Method Details
-
getValue
-
fillInStackTrace
This exception acts as a signal, and should be low cost- Overrides:
fillInStackTracein classThrowable- Returns:
- this
-