Skip to Content
Svelte Flow 2 is out! Read the announcement →

OnError

Source on GitHub 

The OnError type is a callback function that is called when an error occurs in SvelteFlow. It receives the error ID and a message describing the error.

type OnError = (id: string, message: string) => void;
Parameters:
NameTypeDefault
idstring
messagestring
Returns:
void