C# Класс Sage.SageException

Implements an exception that can be converted to XML and through XSLT transformed to HTML.
Наследование: System.Exception
Показать файл Открыть проект

Открытые методы

Метод Описание
Render ( TextWriter writer, SageContext context ) : void

Renders the exception to the specified writer

RenderWithoutContext ( TextWriter writer ) : void

Renders the exception to the specified writer

SageException ( ) : System

Initializes a new instance of the SageException class.

SageException ( Exception exception ) : System

Initializes a new instance of the SageException class, using the specified exception

Защищенные методы

Метод Описание
ConvertToXml ( Exception instance, XmlDocument ownerDocument, ProblemInfo problemInfo = null ) : XmlElement

Saves the current instance as an XmlElement, using the specified ownerDocument to create the element.

GetTransformArguments ( SageContext context ) : object>.Dictionary

Gets the XSLT arguments to use with the transform.

Описание методов

ConvertToXml() защищенный Метод

Saves the current instance as an XmlElement, using the specified ownerDocument to create the element.
protected ConvertToXml ( Exception instance, XmlDocument ownerDocument, ProblemInfo problemInfo = null ) : XmlElement
instance System.Exception The exception instance.
ownerDocument System.Xml.XmlDocument The document to use to create the element.
problemInfo ProblemInfo The problem info associated with the exception.
Результат System.Xml.XmlElement

GetTransformArguments() защищенный Метод

Gets the XSLT arguments to use with the transform.
protected GetTransformArguments ( SageContext context ) : object>.Dictionary
context SageContext The current context.
Результат object>.Dictionary

Render() публичный Метод

Renders the exception to the specified writer
public Render ( TextWriter writer, SageContext context ) : void
writer System.IO.TextWriter The writer to render the exception to.
context SageContext The context under which this code is executing.
Результат void

RenderWithoutContext() публичный Метод

Renders the exception to the specified writer
public RenderWithoutContext ( TextWriter writer ) : void
writer System.IO.TextWriter The writer to render the exception to.
Результат void

SageException() публичный Метод

Initializes a new instance of the SageException class.
public SageException ( ) : System
Результат System

SageException() публичный Метод

Initializes a new instance of the SageException class, using the specified exception
public SageException ( Exception exception ) : System
exception System.Exception The actual exception that was thrown.
Результат System