Index: C:/projects/SourceForge/ibatisnet1/Source1/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs =================================================================== --- C:/projects/SourceForge/ibatisnet1/Source1/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs (revision 227) +++ C:/projects/SourceForge/ibatisnet1/Source1/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs (working copy) @@ -860,7 +860,15 @@ } } - object dataBaseValue = mapping.TypeHandler.GetDataBaseValue( mapping, reader); + object dataBaseValue = null; + try + { + dataBaseValue = mapping.TypeHandler.GetDataBaseValue( mapping, reader); + } + catch (Exception e) + { + throw new Exception (String.Format("Error getting value for column {0} in result map {1}", mapping.ColumnName, resultMap.Id), e); + } if (resultMap != null) { @@ -912,8 +920,15 @@ } else // single parameter key { - keys = reader.GetValue(reader.GetOrdinal(paramString)); - wasNull = reader.IsDBNull(reader.GetOrdinal(paramString)); + try + { + keys = reader.GetValue(reader.GetOrdinal(paramString)); + wasNull = reader.IsDBNull(reader.GetOrdinal(paramString)); + } + catch (Exception e) + { + throw new Exception(String.Format("Error mapping column {0} for statement {1}", paramString, this.Name), e); + } } if (wasNull)