Replies: 1 comment 1 reply
-
보통 예외를 먹는다고 표현하는 것을 많이 접했습니다. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
⚓️서론
이 장은 짧은 내용이다. 제목이 처음이자 끝이라고 생각한다.
짧은 내용이지만 제목을 반복해서 머리에 각인 시키는 연습을 하자.
내용이 짧은 만큼 서론을 마치고 바로 본론으로 들어가겠다.
➡️API 설계자의 목소리를 흘려듣지 말자.
위와 같이
catch
블록을 비워두면 예외가 무시하게된다.본래 예외는 문제 상황에 잘 대처하기 위해 존재한다. 하지만 catch 블록을 비워두면 예외가 존재할 이유가 없어진다.
이런 상황을 비유하면 화재경보를 무시하는 수준을 넘어 아예 꺼버려, 다른 누구도 화재가 발생했음을 인지 못하는 것과 같다.
➡️예외를 무시해야 할 때 ❓❓
ignored
로 바꿔놓도록 하자.✅핵심 정리
Beta Was this translation helpful? Give feedback.
All reactions