Skip to main content
Version: Next

Rethrow

rethrow

Rethrow the error if it is a CommandKit error.

Example

try {
doSomething();
} catch(e) {
// do something

// throw the error if it's a commandkit error
rethrow(e)
}
Signature
function rethrow(error: unknown): void

Parameters

error

parameter
unknown