throws

View sourcethrows(message: string): never

Throws a new Error with the engine log prefix in its message.

The error message is exactly 🚀Chaos Engine:\n\n followed by message. This function never returns.

Examples

throws('The renderer is not initialized.')
// throws Error('🚀Chaos Engine:\n\nThe renderer is not initialized.')

Parameters

NameDescriptionDefault
message

Error message to throw.

—

Throws

Always, with the prefixed message.