Unicorn XML Toolkit
Version 1.50.00

Namespace Xml
Class CToolkitException

class CToolkitException: public IException {
public:
    enum {
        undefinedPrefix,
        undefinedNamespaceUri,
        invalidUri,
        invalidOutputMethod,
        cannotCreateOutputStream,
        invalidDocumentClass,
        missingNode,
        writerIsRunning,
        writerIsNotRunning,
        missingResultStream,
        missingResultHandler,
        invalidSourceDirect
        };
public:
    CToolkitException(int nCode);
    CToolkitException(int nCode, const WCHAR *pszArg);
    CToolkitException(
        int nCode,
        const WCHAR *pszArg1,
        const WCHAR *pszArg2);
    ~CToolkitException();
public:
    CString ToString();
    };

The exception thrown by the toolkit components.

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.50.00
Version:
1.50.00
Author:
Alexey Gokhberg
Constructor/Destructor Summary
CToolkitException (int nCode);
����������Constructs the toolkit exception.
CToolkitException (int nCode, const WCHAR *pszArg);
����������Constructs the toolkit exception with one informational string.
CToolkitException (int nCode, const WCHAR *pszArg1, const WCHAR *pszArg2);
����������Constructs the toolkit exception with two informational strings.
~CToolkitException ();
����������Destroys the toolkit exception.

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

Constructor/Destructor Detail

CToolkitException

CToolkitException(int nCode);

Constructs the toolkit exception.

Parameters:
nCode - the exception code

CToolkitException

CToolkitException(int nCode, const WCHAR *pszArg);

Constructs the toolkit exception with one informational string.

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

CToolkitException

CToolkitException(
    int nCode,
    const WCHAR *pszArg1,
    const WCHAR *pszArg2);

Constructs the toolkit exception with two informational strings.

Parameters:
nCode - the exception code
pszArg1 - the first informational string
pszArg2 - the second informational string

~CToolkitException

~CToolkitException();

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


This document was created using Unicorn DOC++.

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