{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1366","repository_url":"https://api.github.com/repos/AutoMapper/AutoMapper","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1366/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1366/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1366/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1366","id":162341842,"number":1366,"title":"Strange exception if trying to map unmapped type.","user":{"login":"Tasteful","id":357589,"avatar_url":"https://avatars.githubusercontent.com/u/357589?v=3","gravatar_id":"","url":"https://api.github.com/users/Tasteful","html_url":"https://github.com/Tasteful","followers_url":"https://api.github.com/users/Tasteful/followers","following_url":"https://api.github.com/users/Tasteful/following{/other_user}","gists_url":"https://api.github.com/users/Tasteful/gists{/gist_id}","starred_url":"https://api.github.com/users/Tasteful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tasteful/subscriptions","organizations_url":"https://api.github.com/users/Tasteful/orgs","repos_url":"https://api.github.com/users/Tasteful/repos","events_url":"https://api.github.com/users/Tasteful/events{/privacy}","received_events_url":"https://api.github.com/users/Tasteful/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-26T18:58:06Z","updated_at":"2016-06-26T19:53:50Z","closed_at":null,"body":"I'm upgrading my project to use the 5.0.0-beta version of AutoMapper and got exception that for me is not telling correct information. Better if I got an \"Type not mapped exception\".\r\n\r\n```\r\nResult Message:\tExpression of type 'System.Object' cannot be used for constructor parameter of type 'System.Exception'\r\n\r\nResult StackTrace:\t\r\nat System.Linq.Expressions.Expression.ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arg, ParameterInfo pi)\r\n   at System.Linq.Expressions.Expression.ValidateArgumentTypes(MethodBase method, ExpressionType nodeKind, ReadOnlyCollection`1& arguments)\r\n   at System.Linq.Expressions.Expression.New(ConstructorInfo constructor, IEnumerable`1 arguments)\r\n   at AutoMapper.MapperConfiguration.MapperFuncs.GenerateObjectMapperExpression(MapRequest mapRequest, IObjectMapper mapperToUse, MapperConfiguration mapperConfiguration)\r\n   at AutoMapper.MapperConfiguration.MapperFuncs..ctor(MapRequest mapRequest, IObjectMapper mapperToUse, MapperConfiguration mapperConfiguration)\r\n   at AutoMapper.MapperConfiguration.CreateMapperFuncs(MapRequest mapRequest)\r\n   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)\r\n   at AutoMapper.MapperConfiguration.GetUntypedMapperFunc(MapRequest mapRequest)\r\n   at AutoMapper.Mapper.AutoMapper.IMapper.Map(Object source, Type sourceType, Type destinationType)\r\n   at AutoMapper.Mapper.Map(Object source, Type sourceType, Type destinationType)\r\n```"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/228619177","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1366#issuecomment-228619177","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1366","id":228619177,"user":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"created_at":"2016-06-26T19:53:50Z","updated_at":"2016-06-26T19:53:50Z","body":"Your point remains, but for testing you usually call AssertConfigurationIsValid, which hopefully reports the missing map."}}
{"actor":{"display_login":"lbargaoanu"}}