Instruction: Describe the mechanisms available in JavaScript to handle errors and provide an example.
Context: This question tests the candidate's knowledge of error handling techniques in JavaScript, including try-catch blocks and error propagation.