Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- textview
- Coroutines
- Compose
- livedata
- 테스트
- Navigation
- Flutter
- android
- ScrollView
- DART
- Kotlin
- viewmodel
- LifeCycle
- 안드로이드
- CustomScrollView
- data
- tabbar
- intent
- activity
- scroll
- Button
- 계측
- drift
- textfield
- appbar
- TEST
- binding
- 앱바
- Dialog
- 앱
Archives
- Today
- Total
목록exception (1)
Study Record
[Kotlin] Exception Class (예외 처리)
코틀린의 모든 Exception class 는 Thrwoable 클래스를 상속받는다. 모든 Exception(예외)는 메시지, 스택추적, 선택적 원인을 가지고 있다. 😶 예외 발생시키기 예외를 발생시키는 것은 throw 표현을 사용한다. throw Exception("Hi There!") 😶 예외 잡기 예외가 발생하여 프로그램이 종료되는 것을 막으려면 try...catch 표현을 사용한다. try { // some code } catch (e: Exception) { // handler } finally { // optional finally block } try 에 예외가 발생할 가능성이 있는 코드를 적는다. try 문을 실행하는 동안 catch 의 Exception 종류에 따라 예외가 발생했을 때 처..
안드로이드/Kotlin
2023. 8. 9. 10:35