Skip to contents

Throw exception and catch error message

Usage

catch_what(exception, message)

Arguments

exception

name of the exception to be thrown.

message

error message passed to the exception constructor.

Value

A String with message if exception is the name of an implemented exception class.

See also

Other test-helper: Integrator-class, integrate