public ContentRenderingErrorModel(IContentData contentData, Exception exception)
{
var content = contentData as IContent;
if(content != null)
{
ContentName = content.Name;
}
else
{
ContentName = string.Empty;
}
ContentTypeName = contentData.GetOriginalType().Name;
Exception = exception;
}