dart (flutter) - 예외.

test() {
try {
throw OutOfLlamasException('Expected at least 1 section');
throw 'Out of llamas!';
} on OutOfLlamasException {
// A specific exception
buyMoreLlamas();
} on Exception catch (e) {
// Anything else that is an exception
print('Unknown exception: $e');
} catch (e) {
print('Error: $e'); // Handle the exception first.

} finally {
cleanLlamaStalls(); // Then clean up.

}
}

댓글

이 블로그의 인기 게시물

콘탁 Kontakt, KOMPLETE 저렴한 구입 방법.

대성 산업 탁상 시계 DS-173 메뉴얼

약술, 서술, 논술, 사례 답안지 작성 요령.