Skip to content

Instantly share code, notes, and snippets.

View giacomopiva's full-sized avatar

Giacomo Piva giacomopiva

View GitHub Profile
@akisute
akisute / SwiftyJSON+try.swift
Created July 15, 2015 09:30
Small extension to use try-catch error handling in SwiftyJSON
import Foundation
public enum JSONError: Int, ErrorType {
case UnsupportedType = 999
case IndexOutOfBounds = 900
case WrongType = 901
case ErrorNotExist = 500
}
public extension JSON {