Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScript
Class CRuntimeError

class CRuntimeError: public IException {
public:
    enum {
        objectDefaultValue,                  
        objectConstruct,                     
        objectCall,                          
        objectMatch,                         
        referenceGetBase,                    
        referenceGetPropertyName,            
        referenceGetValue,                   
        referencePutValue,                   
        convertToPrimitive,                  
        convertToObject,                     
        newExpression,                       
        functionCallExpression,              
        functionToString,                    
        newArray,                            
        arrayPut,                            
        stringObjectRequired,                
        booleanObjectRequired,               
        numberObjectRequired,                
        numberToString,                      
        dateObjectRequired,                  
        regExpObjectRequired,                
        invalidFormalParameterListSyntax,    
        invalidFunctionBodySyntax,           
        evalCodeSyntaxError,                 
        invalidRegExpFlags                   
        };
public:
    CRuntimeError(int nCode, const XValue &pValue);
    CRuntimeError(int nCode, const XObject &pObject);
    ~CRuntimeError();
public:
    CString ToString();
public:
    XValue GetValue();
    XObject GetObject();
    };

The exception thrown on ECMAScript runtime errors.

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:
CValue, CObject
Constructor/Destructor Summary
CRuntimeError (int nCode, const XValue &pValue);
����������Constructs the runtime error with the specified value.
CRuntimeError (int nCode, const XObject &pObject);
����������Constructs the runtime error with the specified object.
~CRuntimeError ();
����������Destroys the runtime error.

Function Summary
CString ToString ();
����������Returns the string representation of this runtime error.
XValue GetValue ();
����������Returns a value associated with this runtime error.
XObject GetObject ();
����������Returns an object associated with this runtime error.

Constructor/Destructor Detail

CRuntimeError

CRuntimeError(int nCode, const XValue &pValue);

Constructs the runtime error with the specified value.

Parameters:
nCode - the error code
pValue - the value associated with the error

CRuntimeError

CRuntimeError(int nCode, const XObject &pObject);

Constructs the runtime error with the specified object.

Parameters:
nCode - the error code
pObject - the object associated with the error

~CRuntimeError

~CRuntimeError();

Destroys the runtime error.

Function Detail

ToString

CString ToString();

Returns the string representation of this runtime error.

Returns:
the string representation of this runtime error

GetValue

XValue GetValue();

Returns a value associated with this runtime error.

Returns:
the value associated with this runtime error; NULL if there is no value associated

GetObject

XObject GetObject();

Returns an object associated with this runtime error.

Returns:
the object associated with this runtime error; NULL if there is no object associated

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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