C# Class Sage.SageException

Implements an exception that can be converted to XML and through XSLT transformed to HTML.
Inheritance: System.Exception
ファイルを表示 Open project: igorfrance/sage

Public Methods

Method Description
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

Protected Methods

Method Description
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.

Method Details

ConvertToXml() protected method

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.
return System.Xml.XmlElement

GetTransformArguments() protected method

Gets the XSLT arguments to use with the transform.
protected GetTransformArguments ( SageContext context ) : object>.Dictionary
context SageContext The current context.
return object>.Dictionary

Render() public method

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.
return void

RenderWithoutContext() public method

Renders the exception to the specified writer
public RenderWithoutContext ( TextWriter writer ) : void
writer System.IO.TextWriter The writer to render the exception to.
return void

SageException() public method

Initializes a new instance of the SageException class.
public SageException ( ) : System
return System

SageException() public method

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.
return System