 		do {
 			try exec(deleteSQL(self.table(), idName: idname), params: [String(describing: idval)])
 		} catch {
-			throw StORMError.error(error.localizedDescription)
+			self.error = StORMError.error(error.localizedDescription)
+			throw error
 		}
 	}
 

		do {
			try select(whereclause: "\(idname) = $1", params: [String(describing: idval)], orderby: [])
		} catch {
			throw StORMError.error(error.localizedDescription)
		}
	}


	public func find() {
		// TODO: find function...
		// shortcut to select
	}
}

		do {
			try select(whereclause: "\(idname) = $1", params: [String(describing: id)], orderby: [])
		} catch {
			throw error
		}
	}

