Unicorn XML Toolkit
Version 1.00.00

Namespace Som
Class CSomException

class CSomException: public IException {
public:
    enum {
        invalidNode,
        missingAttribute,
        invalidAttributeValue,
        duplicateName,
        undefinedInterface,
        unresolvedForwardReference,
        invalidNameSyntax,
        invalidTypeSyntax,
        invalidValueSyntax
        };
public:
    CSomException(int nCode);
    CSomException(
        int nCode,
        const CString &strArg);
    CSomException(
        int nCode,
        const CString &strArg1,
        const CString &strArg2);
    ~CSomException();
public:
    CString ToString();
    };

The exception thrown when a generic SOM error occurs.

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.

One or two optional informational strings may be associated with the exception.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
Constructor/Destructor Summary
CSomException (int nCode);
����������Constructs the exception.
CSomException (int nCode, const CString &strArg);
����������Constructs the exception with one informational string.
CSomException (int nCode, const CString &strArg1, const CString &strArg2);
����������Constructs the exception with two informational strings.
~CSomException ();
����������Destroys the exception.

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

Constructor/Destructor Detail

CSomException

CSomException(int nCode);

Constructs the exception.

Parameters:
nCode - the exception code

CSomException

CSomException(
    int nCode,
    const CString &strArg);

Constructs the exception with one informational string.

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

CSomException

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

Constructs the exception with two informational strings.

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

~CSomException

~CSomException();

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.