Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CXpathException

class CXpathException: public IException {
public:
    enum {
        illegalExprChar,
        nonTerminatedLiteral,
        invalidVariableReference,
        invalidOperatorName,
        invalidFunctionName,
        invalidAxisName,
        invalidExprSyntax,
        missingColonColon,
        missingParenleft,
        missingParenright,
        missingBracketright,
        invalidNodeTest,
        invalidPrimaryExpr,
        prefixNotFoundInExpressionContext,
        variableNotBoundInExpressionContext,
        functionNotFoundInExpressionContext,
        invalidNumberOfArguments,
        invalidArgumentType,
        comparisonNotSupported
        };
public:
    CXpathException(int nCode);
    CXpathException(int nCode, const CString &strArg);
    CXpathException(
        int nCode, 
        const CString &strArg1,
        const CString &strArg2);
    CXpathException(
        int nCode, 
        const CString &strArg1,
        const CString &strArg2,
        const CString &strArg3);
    CXpathException(CXpathException *e);
    ~CXpathException();
public:
    CString ToString();
    };

The exception thrown by the XPath engine.

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

Optionally, up to three informational strings may be associated with the exception.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
Constructor/Destructor Summary
CXpathException (int nCode);
����������Constructs the XPath exception.
CXpathException (int nCode, const CString &strArg);
����������Constructs the XPath exception with one informational string.
CXpathException (int nCode, const CString &strArg1, const CString &strArg2);
����������Constructs the XPath exception with two informational strings.
CXpathException (int nCode, const CString &strArg1, const CString &strArg2, const CString &strArg3);
����������Constructs the XPath exception with three informational strings.
CXpathException (CXpathException *e);
����������Constructs the XPath exception by copying another XPath exception.
~CXpathException ();
����������Destroys the XPath exception.

Function Summary
CString ToString ();
����������Returns the string representation of this exception.

Constructor/Destructor Detail

CXpathException

CXpathException(int nCode);

Constructs the XPath exception.

Parameters:
nCode - the exception code

CXpathException

CXpathException(int nCode, const CString &strArg);

Constructs the XPath exception with one informational string.

Parameters:
nCode - the exception code
strArg - the informational string

CXpathException

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

Constructs the XPath exception with two informational strings.

Parameters:
nCode - the exception code
strArg1 - the first informational string
strArg2 - the second informational string

CXpathException

CXpathException(
    int nCode, 
    const CString &strArg1,
    const CString &strArg2,
    const CString &strArg3);

Constructs the XPath exception with three informational strings.

Parameters:
nCode - the exception code
strArg1 - the first informational string
strArg2 - the second informational string
strArg3 - the third informational string

CXpathException

CXpathException(CXpathException *e);

Constructs the XPath exception by copying another XPath exception.

Parameters:
e - the XPath exception to copy

~CXpathException

~CXpathException();

Destroys the XPath exception.

Function Detail

ToString

CString ToString();

Returns the string representation of this exception.

Returns:
the string representation of this exception

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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