Multiple ChoiceBeginner 180s
Go: Custom Errors
How do you create a custom error?
Options
- 1panic() with a formatted message
- 2errors.New() or fmt.Errorf()
- 3try/catch with typed handlers
- 4throw with an exception object
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.