All challenges
Multiple ChoiceBeginner 180s

Go: Custom Errors

How do you create a custom error?
Options
  1. 1panic() with a formatted message
  2. 2errors.New() or fmt.Errorf()
  3. 3try/catch with typed handlers
  4. 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.

Play this in a 3-minute battle