clean code 제 7장 오류처리
7장 오류처리입니다 깨끗하게 오류를 처리하는 방법을 소개하고 있습니다. 1. 오류 코드보다 예외처리 BAD 예시 if (handle != DeviceHandle.INVALID): 함수1() if (): 함수2() else: log("오류2") log("오류1") } 이런 코드 보다는 try catch 문으로 작성하는게 좋음 2. 오류 메세지 예외를 던질때 어떤 오류인지 추가로 정보를 제공하면 좋음. ex. log("Device response exception") 3. 호출자를 고려 예외를 리턴하는 클래스를 정의하여 에러처리 BAD 예시 try { port.open(); } catch (e1) { reportPortError(e); log("Device ~ e"); } catch (e2){ report~..
computer science
2023. 4. 26. 19:34
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- swift network 공통화
- rag 기반 llm
- llm pdf rag
- 공부 타이머 어플
- swift 자간
- swift excel read
- swift network refactoring
- rag 기반 llm 챗봇
- chatgpt rag llm
- swift 엑셀 읽기
- 레디세이
- swift 엑셀 가져오기
- swift urlsession network module
- focus timer 어플
- swift urlsession refactoring
- swift network module
- swift urlcomponent encode
- swift filemanager excel
- swift 네트워크 모듈화
- filemanager excel read
- rag llm pdf
- readysay
- swift filemanager get excel
- llm csv
- 레디세이 어플
- swift urlsession 공통화
- swift urlsession module
- swift get excel
- swift queryitem encode
- 엔디소프트 레이세이
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함