Skip to content

Commit 310b563

Browse files
committed
Throw exception on wrong typeName
1 parent 38a2ea2 commit 310b563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NHibernate/Type/TypeFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,9 @@ public static IType HeuristicType(string typeName, IDictionary<string, string> p
582582
{
583583
typeClass = ReflectHelper.ClassForName(parsedTypeName[0]); //typeName);
584584
}
585-
catch (Exception)
585+
catch (Exception ex)
586586
{
587-
return null;
587+
throw new MappingException("Could not find IType for given" + typeName + ": " + ex, ex);
588588
}
589589
return HeuristicType(typeClass, parameters, length, false);
590590
}

0 commit comments

Comments
 (0)