Main Page | Modules | Files | Functions | Code Elements | Data Structures | Deprecated

tc/emh.h File Reference


Detailed Description

This header defines the ITK interface to the Teamcenter error store.

Definition in file emh.h.

#include <tc/tc_startup.h>
#include <tc/libtc_exports.h>
#include <tc/libtc_undef.h>

Go to the source code of this file.

Defines

Error severities

Functions

Obsolete Functions
The following functions have never been publicly documented, however we are attempting to maintain their intended functionality for migration purposes. Please do not use these functions in any new code.


Define Documentation

#define EMH_FATAL   3

Definition at line 36 of file emh.h.

#define EMH_MAX_NUM_EMSG   100

Definition at line 446 of file emh.h.

#define EMH_MAXEMSG   1024

Maximum size of error message

Definition at line 40 of file emh.h.

#define EMH_SERIOUS   2

Definition at line 35 of file emh.h.

#define EMH_severity_error   3

Definition at line 21 of file emh.h.

#define EMH_severity_information   1

Definition at line 19 of file emh.h.

#define EMH_severity_user_error   4

Definition at line 22 of file emh.h.

#define EMH_severity_warning   2

Definition at line 20 of file emh.h.

#define EMH_WARNING   1

Definition at line 34 of file emh.h.


Function Documentation

TC_API int EMH_ask_initial_traceback ( const char *  separator,
char **  traceback 
)

Report the earliest ERROR_raise and its associated traceback

Parameters:
separator  (I)
traceback  (OF)

TC_API char* EMH_ask_system_log ( void   ) 

A routine to call ERROR_ask_system_log

TC_API void EMH_capture_initial_traceback ( void   ) 

Copy our memory of any signals/ERROR_internals to the database, then clear it.

TC_API int EMH_catch_ifail ( int  ifail  ) 

Generate an ERROR_note when this ifail occurs.

Parameters:
ifail  (I)

TC_API void EMH_clear_initial_traceback ( void   ) 

Clear our memory of any ERROR_raises

TC_API void EMH_close_error_text_file ( void   ) 

A routine to force a re-open on the error text file

TC_API int EMH_get_error_codes ( tag_t  tag,
int  index_name,
int  max,
int *  codes 
)

If index is zero, this returns the error codes currently on the error store.

Note:
The error code are returned with the lowest-level error first. If index is non-zero, it returns just the index'th-1 error code.

This functions returns the number of errors it is giving back, NOT an ifail code as is normal for Teamcenter ITK.

Warning:
this routine expects you to have allocated space for int *codes yourself
Parameters:
tag  (I)
index_name  (I)
max  (I)
codes  (O)

TC_API int EMH_get_error_text ( tag_t  tag,
int  index_name,
int  max,
char *  msgs[] 
)

If index is zero, this returns the error messages currently on the error store.

Note:
The error messages are returned with the lowest-level error first. If index is non-zero, it returns just the index'th-1 error message.

This functions returns the number of errors it is giving back, NOT* an ifail code as is normal for Teamcenter ITK.

Warning:
this routine expects you to have allocates space for char* msgs[] to be a max array of pointers to space for error text to be strcpy'd to. You almost certainly want to call EMH_ask_errors instead
Parameters:
tag  (I)
index_name  (I)
max  (I)
msgs  (O)