Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScriptDom
Class CEcmaScriptDomException

class CEcmaScriptDomException: public IException {
public:
    enum {
        tooManyArguments,
        stringRequired,
        booleanRequired,
        numberRequired,
        objectRequired,
        domObjectRequired,
        nodeObjectRequired,
        nodeListObjectRequired,
        namedNodeMapObjectRequired,
        domImplementationObjectRequired,
        documentFragmentObjectRequired,
        documentObjectRequired,
        characterDataObjectRequired,
        attrObjectRequired,
        elementObjectRequired,
        textObjectRequired,
        commentObjectRequired,
        cdataSectionObjectRequired,
        documentTypeObjectRequired,
        notationObjectRequired,
        entityObjectRequired,
        entityReferenceObjectRequired,
        processingInstructionObjectRequired
        };
public:
    CEcmaScriptDomException(int nCode, const XValue &pValue);
    CEcmaScriptDomException(int nCode, const XObject &pObject);
    CEcmaScriptDomException(int nCode, const CString &strArg);
    ~CEcmaScriptDomException();
public:
    CString ToString();
    };

The exception thrown by ECMAScript DOM extensions.

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.

To provide more detailed exception information, one of the following entities is associated with every object of this class:

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
EcmaScript::CValue, EcmaScript::CObject
Constructor/Destructor Summary
CEcmaScriptDomException (int nCode, const XValue &pValue);
����������Constructs the exception with the specified code and the specified ECMAScript value.
CEcmaScriptDomException (int nCode, const XObject &pObject);
����������Constructs the exception with the specified code and the specified ECMAScript object.
CEcmaScriptDomException (int nCode, const CString &strArg);
����������Constructs the exception with the specified code and the specified descriptive string.
~CEcmaScriptDomException ();
����������Destroys the exception.

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

Constructor/Destructor Detail

CEcmaScriptDomException

CEcmaScriptDomException(int nCode, const XValue &pValue);

Constructs the exception with the specified code and the specified ECMAScript value.

Parameters:
nCode - the exception code
pValue - the ECMAScript value which caused this exception

CEcmaScriptDomException

CEcmaScriptDomException(int nCode, const XObject &pObject);

Constructs the exception with the specified code and the specified ECMAScript object.

Parameters:
nCode - the exception code
pObject - the ECMAScript object which caused this exception

CEcmaScriptDomException

CEcmaScriptDomException(int nCode, const CString &strArg);

Constructs the exception with the specified code and the specified descriptive string.

Parameters:
nCode - the exception code
strArg - the string describing source of this exception

~CEcmaScriptDomException

~CEcmaScriptDomException();

Destroys the 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.