adding public string function

This commit is contained in:
Jonathan Guthrie 2016-10-06 14:22:30 -04:00
parent 9a6836f8aa
commit 23081102ae
1 changed files with 19 additions and 0 deletions

View File

@ -16,4 +16,23 @@ public enum StORMError: Error {
init(){
self = .noError
}
public func string() -> String {
switch self {
case .database:
return "No Database Specified"
case .noRecordFound:
return "No Record Found"
case .noError:
return "No Error"
case .notImplemented:
return "Not Implemented"
default:
return "Error"
}
}
}