Skip to content

throwExpression

Throws an error with the specified message.

Import:

import { throwExpression } from 'obsidian-dev-utils/error';

Signature:

function throwExpression(error: unknown): never

Parameters:

ParameterTypeDescription
errorunknownThe error to throw.

Returns: never