It is easy enough to write:
enum MyAPIError {
case networkError(NetworkError) // Enum to be extended.
case responseInvalid
case sessionExpired
case notEnoughMinerals
case insufficientVespineGas
}
So I don't think it worth the complication.