diff --git a/Sources/StORM/StORMError.swift b/Sources/StORM/StORMError.swift index bb96519..dd4f645 100644 --- a/Sources/StORM/StORMError.swift +++ b/Sources/StORM/StORMError.swift @@ -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" + } + } }