# 11.4 예외 처리와 호출 스택

* 에러는 호출 스택 어디에서든 캐치할 수 있음
* 어디에서 이 에러를 캐치하지 않으면 자바 스크립트 인터프리터는 프로그램을 멈춤
  * 처리하지 않은 (unhandled) 예외
  * 캐치하지 않은 (uncaught) 예외

두 개의 에러는 프로그램을 충돌하는 원인이 되기 때문에 **호출 스택에서 문제 해결에 유용한 정보를 얻어 해결**해나가야함


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://april.gitbook.io/learning-js/chapter-11./11.4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
