Files
ValueScript/concept-code/exceptions/tryCatch.ts
2023-03-22 16:37:11 +11:00

8 lines
126 B
TypeScript

export default function () {
try {
throw new Error("Something went wrong");
} catch (error) {
return error;
}
}