Unicorn XML Toolkit
Version 1.00.00

Namespace Xslt
Class CXsltException

class CXsltException: public IException {
public:
    enum {
        invalidStylesheet,
        invalidStylesheetContent,
        stylesheetRetrievalError,
        misplacedImport,
        invalidTopLevelElement,
        missingAttribute,
        invalidAttributeValue,
        invalidExprSyntax,
        invalidAvtSyntax,
        undefinedPrefix,
        contentMustBeEmpty,
        invalidContent,
        invalidPcdata,
        invalidInstruction,
        invalidElement,
        missingElement,
        misplacedElement,
        invalidUriSyntax,
        cannotResolveRelativeUri,
        extensionStaticError,
        processingTerminated,
        cannotCreateResultStream,
        multipleMatchingSpaceRules,
        multipleMatchingTemplateRules,
        nullCurrentTemplateRule,
        namedTemplateRuleNotFound,
        duplicateTemplateRuleName,
        duplicateNamespaceAlias,
        attributeSetNotFound,
        duplicateAttributeName,
        duplicateDecimalFormatName,
        defaultDecimalFormatNotFound,
        decimalFormatNotFound,
        duplicateOutputAttribute,
        duplicateVariableName,
        circularVariableDefinitions,
        misplacedAttributeNode,
        misplacedCommentNode,
        misplacedElementNode,
        misplacedProcessingInstructionNode,
        misplacedNamespaceNode,
        invalidAttributeName,
        avtEvaluationError,
        exprEvaluationError,
        valueConversionError,
        invalidComputedAttributeValue,
        invalidSelectionResultType,
        invalidNumberOfArguments,
        invalidArgumentType,
        documentRetrievalError,
        outputError,
        writerError,
        unsupportedFeature,
        extensionRuntimeWarning,
        extensionRuntimeError
        };
public:
    CXsltException(
        int nCode, 
        const CString &strArg1,
        const CString &strArg2);
    CXsltException(
        int nCode, 
        const CNodeId &stylesheetNodeId,
        const CString &strStylesheetNodeName,
        const CString &strArg1,
        const CString &strArg2);
    CXsltException(
        int nCode, 
        const CNodeId &stylesheetNodeId,
        const CString &strStylesheetNodeName,
        const CNodeId &documentNodeId,
        const CString &strDocumentNodeName,
        const CString &strArg1,
        const CString &strArg2);
    ~CXsltException();
public:
    CString ToString();
public:
    CNodeId GetStylesheetNodeId();
    CString GetStylesheetNodeName();
    CNodeId GetDocumentNodeId();
    CString GetDocumentNodeName();
    };

The exception thrown by the XSLT engine.

Every XSLT exception is assigned an integer exception code. Allowed values for exception codes are specified by the anonymous enumeration contained in this class declaration.

Every XSLT exception may have the following optional attributes, which can be used for reporting errors:

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
Constructor/Destructor Summary
CXsltException (int nCode, const CString &strArg1, const CString &strArg2);
����������Constructs the XSLT exception.
CXsltException (int nCode, const CNodeId &stylesheetNodeId, const CString &strStylesheetNodeName, const CString &strArg1, const CString &strArg2);
����������Constructs the XSLT exception referencing a stylesheet node.
CXsltException (int nCode, const CNodeId &stylesheetNodeId, const CString &strStylesheetNodeName, const CNodeId &documentNodeId, const CString &strDocumentNodeName, const CString &strArg1, const CString &strArg2);
����������Constructs the XSLT exception referencing a stylesheet node and a document node.
~CXsltException ();
����������Destroys the XSLT exception.

Function Summary
CString ToString ();
����������Returns the string representation of this exception.
CNodeId GetStylesheetNodeId ();
����������Returns the identifier of the stylesheet node related to this exception.
CString GetStylesheetNodeName ();
����������Returns the name of the stylesheet node related to this exception.
CNodeId GetDocumentNodeId ();
����������Returns the identifier of the document node related to this exception.
CString GetDocumentNodeName ();
����������Returns the name of the document node related to this exception.

Constructor/Destructor Detail

CXsltException

CXsltException(
    int nCode, 
    const CString &strArg1,
    const CString &strArg2);

Constructs the XSLT exception.

Parameters:
nCode - the exception code
strArg1 - the first informational string associated with this exception, or the empty string if none was supplied
strArg2 - the second informational string associated with this exception, or the empty string if none was supplied

CXsltException

CXsltException(
    int nCode, 
    const CNodeId &stylesheetNodeId,
    const CString &strStylesheetNodeName,
    const CString &strArg1,
    const CString &strArg2);

Constructs the XSLT exception referencing a stylesheet node.

Parameters:
nCode - the exception code
stylesheetNodeId - the identifier of the stylesheet node related to this exception
strStylesheetNodeName - the name of the stylesheet node related to this exception
strArg1 - the first informational string associated with this exception, or the empty string if none was supplied
strArg2 - the second informational string associated with this exception, or the empty string if none was supplied

CXsltException

CXsltException(
    int nCode, 
    const CNodeId &stylesheetNodeId,
    const CString &strStylesheetNodeName,
    const CNodeId &documentNodeId,
    const CString &strDocumentNodeName,
    const CString &strArg1,
    const CString &strArg2);

Constructs the XSLT exception referencing a stylesheet node and a document node.

Parameters:
nCode - the exception code
stylesheetNodeId - the identifier of the stylesheet node related to this exception
strStylesheetNodeName - the name of the stylesheet node related to this exception
documentNodeId - the identifier of the document node related to this exception
strDocumentNodeName - the name of the document node related to this exception
strArg1 - the first informational string associated with this exception, or the empty string if none was supplied
strArg2 - the second informational string associated with this exception, or the empty string if none was supplied

~CXsltException

~CXsltException();

Destroys the XSLT exception.

Function Detail

ToString

CString ToString();

Returns the string representation of this exception.

Returns:
the string representation of this exception

GetStylesheetNodeId

CNodeId GetStylesheetNodeId();

Returns the identifier of the stylesheet node related to this exception.

Returns:
the identifier of the stylesheet node related to this exception, or null identifier if none was supplied

GetStylesheetNodeName

CString GetStylesheetNodeName();

Returns the name of the stylesheet node related to this exception.

Returns:
the name of the stylesheet node related to this exception, or the empty string if none was supplied

GetDocumentNodeId

CNodeId GetDocumentNodeId();

Returns the identifier of the document node related to this exception.

Returns:
the identifier of the document node related to this exception, or null identifier if none was supplied

GetDocumentNodeName

CString GetDocumentNodeName();

Returns the name of the document node related to this exception.

Returns:
the name of the document node related to this exception, or the empty string if none was suppled

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.