Error handling prior to Swift 2.0