throw new Error('Whoops!')
try {
throw new Error('Whoops!')
} catch (e) {
console.error(e.name + ': ' + e.message)
}
throw new Error("Error message here"); // Uncaught Error: Error message here
throw new Error("message");
try {
// body of try
throw exception;
}
catch(error) {
// body of catch
}
throw expression;