C# Class Sage.SageException

Implements an exception that can be converted to XML and through XSLT transformed to HTML.
Inheritance: System.Exception
Afficher le fichier Open project: igorfrance/sage

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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.
Résultat System.Xml.XmlElement

GetTransformArguments() protected méthode

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

Render() public méthode

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.
Résultat void

RenderWithoutContext() public méthode

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

SageException() public méthode

Initializes a new instance of the SageException class.
public SageException ( ) : System
Résultat System

SageException() public méthode

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.
Résultat System