Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Android
- async
- AES
- kotlin
- sha256
- Functional
- traits
- ranges
- c++
- go
- Scala
- RAII
- ChromeTab
- template
- Chrono
- WebView
- web
- program
- coroutines
- Clojure
- sprintf
- type_traits
- haskell
- SHA1
- design pattern
- Reflect
- stringprintf
- CustomTab
- SHA512
- Observer
Archives
- Today
- Total
프로그래밍 검색 블로그
C++ 예외 처리 본문
1 2 3 4 5 6 7 | void testException(){ try{ //throw... } catch(std::exception& e){ cout << e.what() << endl; } } | cs |
기본적인 처리 exception에서 받을 수 있지만 null이나 댕글링 포인터는 받을수 없다.
1 2 3 4 5 6 7 | void testException2(){ __try{ //throw... } __except(EXCEPTION_EXECUTE_HANDLER){ //process } } | cs |
비주얼 스튜디오 확장문법.
null이나 댕글링 포인터도 처리 가능하나 소멸자의 호출이 불가능하고 이식성에도 문제가 있다.
'C++ 패턴' 카테고리의 다른 글
옵저버 패턴 Observer Pattern [function] (0) | 2017.10.04 |
---|---|
옵저버 패턴 Observer Pattern [Class 구조] (0) | 2017.10.03 |
Comments