[][src]Function dart_sys::Dart_ThrowException

pub unsafe extern "C" fn Dart_ThrowException(
    exception: Dart_Handle
) -> Dart_Handle

Throws an exception.

This function causes a Dart language exception to be thrown. This will proceed in the standard way, walking up Dart frames until an appropriate 'catch' block is found, executing 'finally' blocks, etc.

If an error handle is passed into this function, the error is propagated immediately. See Dart_PropagateError for a discussion of error propagation.

If successful, this function does not return. Note that this means that the destructors of any stack-allocated C++ objects will not be called. If there are no Dart frames on the stack, an error occurs.

\return An error handle if the exception was not thrown. Otherwise the function does not return.