์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- map
- mongoose
- UIRefreshController
- ํ๋ก๊ทธ๋๋จธ์ค
- Mac
- ios
- Firestore CRUD
- Core Data
- ์ง๋ฒ๋ณํ
- Codable
- SWiFT
- MongoDB
- components
- AVAudioPlayer
- ์ฑ๋์์ธ
- nodejs
- RxSwift
- String.Index
- Cloud Firestore
- Encodable
- ์๊ณ ๋ฆฌ์ฆ
- CRUD
- Decodable
- ์ฑ๋ง๋ค๊ธฐ
- Reduce
- DispatchQueue
- Firestore
- Filter
- Figma
- ExpressJS
- Today
- Total
๋ชฉ๋ก์๋ฌ ํธ๋ค๋ง (1)
Focus On Develop ๐ค๐ค

์ด๋ฒ์๋ ์ ๋ง ์ค๋๋ง์ ๊ธ์ ์ฐ๋ค์~~ ใ ใ ๊ทธ๋์ ์์๋ Big Event๋ ์์ํ ์ผ์ ๋ธ๋ก๊ทธ์ ํฌ์คํ ํ๋ ๊ถ๊ธํ์ ๋ถ(?)์ ๋๋ฌ์ค์ธ์~!! ๐ ์ค๋์ Swift์์ Error๋ฅผ ์ด๋ป๊ฒ Handlingํ๋ฉด ๋๋์ง ์ ๋ฆฌํด๋ณผ๊ฑฐ์์. "๊ทผ๋ฐ Error Handling์ด ๋ญ๋ฐ~?" ๋ง ๊ทธ๋๋ก ํ๋ก๊ทธ๋จ์ด ์คํ๋๋ค๊ฐ ์๋ฌ๊ฐ ๋ฐ์ํ์๋, ์ด๋ป๊ฒ ์ฒ๋ฆฌํ ๊ฑด์ง~? ๋ผ๊ณ ํด์ํด๋ ๋ ๊ฒ ๊ฐ์์! ๊ตฌ๊ตฌ์ ์ ์ค๋ช ๋ณด๋ค๋.. ์ญ์ ๊ฐ๋จํ ์์ ๋ฅผ ๋ณผ๊ฒ์! enum CustomError: Error { case invalidUrl case urlEmpty case other } ๋จผ์ Custom ํ์ ์ผ๋ก Error๋ฅผ ๋ง๋ค์ด ์ฃผ์์ด์. ์ด๋ฐ ์๋ฌํ์ ์ ์ํ๋๋๋ก ์ง์ ํด์ ๋ง๋ค ์ ์๊ณ , ์ํ๋ ๋งํผ case๋ฅผ ๋๋ ์๋ ์์ด์~!..