Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 508
   
12-26
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 8.0(1)
Chapter 12      Helper Classes
CCtiOsException Class (C++, Java, and .NET only)
Input Parameters
pObject
A pointer to a CtiOsObject to encapsulate (e.g. CCall, CAgent, etc.) 
Return Values
If the method was able to set the reference it returns true. Otherwise, it returns false.
CCtiOsException Class (C++, Java, and .NET only)
The CCtiosException class is normally used within the Arguments class. It provides access to additional 
information when exceptions are thrown, such as what parameter is in error, memory allocation failed, 
and so on.
 lists the available CCtiOsException class methods.
CCtiosException Constructor
The CCtiosException constructor initializes an object of type CCtiosException.
Syntax
C++, Java, .NET:
 CCtiosException(const char *pMsg, int iCode, int iStatus);
C++:
 CCtiosException(const string& rstrMsg, int iCode, int iStatus);
Input Parameters
pMsg
Pointer to string that holds a description of an error.
iCode
Number that identifies an error.
iStatus
Status of an error.
Table 12-7
CCtiOsException Class Methods
Method
Description
CCtiosException
Class constructor.
GetCode
Returns the error code that generated the exception. 
GetStatus
Returns the error status that generated the exception.
GetString
Returns a text string containing the description of 
the exception.
What
Returns a text string containing the description of 
the exception, the code of an error and the status.