Show / Hide Table of Contents

Class ZptSharpErrorView

A provider for a stream which contains a web page displaying a ZptSharp rendering error to an end user.

Inheritance
System.Object
ZptSharpErrorView
Implements
IGetsErrorStream
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ZptSharp.Mvc5
Assembly: ZptSharp.Mvc5.dll
Syntax
public class ZptSharpErrorView : IGetsErrorStream

Constructors

| Improve this Doc View Source

ZptSharpErrorView(IGetsZptDocumentRendererForFilePath)

Initializes a new instance of the ZptSharpErrorView class.

Declaration
public ZptSharpErrorView(IGetsZptDocumentRendererForFilePath rendererFactory)
Parameters
Type Name Description
IGetsZptDocumentRendererForFilePath rendererFactory

A renderer factory.

Methods

| Improve this Doc View Source

GetErrorStreamAsync(Exception)

Gets a stream which represents the rendered error document.

Declaration
public Task<Stream> GetErrorStreamAsync(Exception exception)
Parameters
Type Name Description
System.Exception exception

The exception which caused this error view to be displayed.

Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>

The error stream.

Implements

IGetsErrorStream
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX