CompilationFailedException Class

Summary

An [System.Exception]() thrown when accessing the result of a failed compilation.

Syntax

public class CompilationFailedException : Exception, ISerializable, _Exception, ICompilationException

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.Compilation.CompilationFailedException

Constructors

CompilationFailedException(System.Collections.Generic.IEnumerable<ICompilationFailure>)

Instantiates a new instance of [Microsoft.AspNet.Mvc.Razor.Compilation.CompilationFailedException](Microsoft.AspNet.Mvc.Razor.Compilation.CompilationFailedException.yml).

Arguments:
  • compilationFailures (System.Collections.Generic.IEnumerable{ICompilationFailure}) – @!:ICompilationFailure-s containing details of the compilation failure.
public CompilationFailedException(IEnumerable<ICompilationFailure> compilationFailures)

Properties

CompilationFailures()
Return type:System.Collections.Generic.IEnumerable{ICompilationFailure}
public IEnumerable<ICompilationFailure> CompilationFailures { get; }