// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.Framework.Runtime;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Razor.Compilation
{
///
/// for Razor parse failures.
///
public class RazorCompilationFailure : ICompilationFailure
{
/// Initializes a new instance of .
/// The path of the Razor source file that was compiled.
/// The contents of the Razor source file.
/// A sequence of encountered
/// during compilation.
public RazorCompilationFailure(
[NotNull] string sourceFilePath,
[NotNull] string sourceFileContent,
[NotNull] IEnumerable messages)
{
SourceFilePath = sourceFilePath;
SourceFileContent = sourceFileContent;
Messages = messages;
}
///
public string SourceFilePath { get; }
///
public string SourceFileContent { get; }
///
public string CompiledContent { get; } = null;
///
public IEnumerable Messages { get; }
}
}