Created
December 31, 2015 18:09
-
-
Save verec/dfd220d0751f3f74d702 to your computer and use it in GitHub Desktop.
What Erica meant to write when showing off 1TBS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public extension Contextualizable { | |
public func BuildContextError( items: Any..., | |
file: String = (__FILE__ as NSString).lastPathComponent, | |
function: String = __FUNCTION__, | |
line: Int = __LINE__) -> CoreError { | |
let reasons = items.map({"\($0)"}).joinWithSeparator(", ") | |
let context = "\(function):\(self.dynamicType):\(file):\(line) " | |
return CoreError(reasons, context) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment