Skip to content

Instantly share code, notes, and snippets.

View pitiphong-p's full-sized avatar

Pitiphong Phongpattranont pitiphong-p

View GitHub Profile
import Foundation
// See: https://developer.apple.com/swift/blog/?id=15
struct Error: ErrorType {
var _domain: String {return "com.sadun"}
var _code: Int {return 0}
}
enum MyError : ErrorType {