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

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

์ ๋ MacOS Bigsur์ ์ฌ์ฉํ๊ณ ์๊ณ , brew update์ค์ homebrew-core is a shallow clone ์๋ฌ๋ฅผ ๋ง๋ฌ์ต๋๋ค.homebrew ์ค์น์ ๋์ด์ shallow clone์ ์์ฑํ์ง ์๊ธฐ ๋๋ฌธ์ ํจํค์ง๋ฅผ ์ ๋ฐ์ดํธ ํ ์ ์๋ค๋ ์๋ฌ์ ๋๋ค. ์ฐ์ฌ์๋ ๋ฐ๋ก update๋ฅผ ํ๊ธฐ ์ ์ git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow ๋ช ๋ น์ด๋ฅผ ์คํํ๋ผ๊ณ ํ๋ค์! ์ํค๋๋๋ก ํด์ค๋๋ค. ์คํธ~ ์ ๋ ์ด๊น์ง ํด์คฌ๋๋ฐ ์ ๋์๋ค์! ์ด๊น์ง ํ๋๋ฐ๋ ํ๋ฒ ๋ ์๋ฌ๊ฐ ๋์๋ ๋ถ์, git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fe..