// Copyright (c) .NET Foundation. 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.AspNet.Http; using Microsoft.Extensions.Primitives; namespace Microsoft.AspNet.Diagnostics.Views { /// /// Holds data to be displayed on the error page. /// public class ErrorPageModel { /// /// Options for what output to display. /// public ErrorPageOptions Options { get; set; } /// /// Detailed information about each exception in the stack. /// public IEnumerable ErrorDetails { get; set; } /// /// Parsed query data. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "Model class contains collection")] public IReadableStringCollection Query { get; set; } /// /// Request cookies. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "Model class contains collection")] public IReadableStringCollection Cookies { get; set; } /// /// Request headers. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "Model class contains collection")] public IDictionary Headers { get; set; } } }