Descripción
Catch an exception and log it
File Template: ❌
Prefix
log:exception
Scopes
typescript
Snippet de código
try {
${1:// code that may throw exception}
} catch (${2:error}: unknown) {
console.error("${3:Error message}", error);
}
Catch an exception and log it
log:exception
typescript
try {
${1:// code that may throw exception}
} catch (${2:error}: unknown) {
console.error("${3:Error message}", error);
}