#include <string.h>
#include "ObitErr.h"
#include "ObitMem.h"
Functions | |
| ObitErr * | newObitErr (void) |
| Public: Constructor. | |
| ObitErr * | ObitErrRef (ObitErr *in) |
| Public: Reference to object, update reference count. | |
| ObitErr * | ObitErrUnref (ObitErr *in) |
| Public: Unreference object, destroy if no more references. | |
| void | ObitErrClear (ObitErr *in) |
| Public: Clear error stack. | |
| void | ObitErrClearErr (ObitErr *in) |
| Public: Clear only error messages and status in stack. | |
| void | ObitErrPush (ObitErr *in, ObitErrCode errLevel, gchar *errMsg) |
| Public: Add entry in error stack. | |
| void | ObitErrPop (ObitErr *in, ObitErrCode *errLevel, gchar **errMsg) |
| Public: Pop last entry from top of stack. | |
| void | ObitErrLog (ObitErr *in) |
| Public: Write all entries in log file. | |
| gboolean | ObitErrIsA (ObitErr *in) |
| Public: Returns true if input is a ObitErr*. | |
This is an error stack class for obtaining tracebacks for error conditions. When an error is detected, it should be entered onto the ObitErr and the function returns. If an error level of OBIT_Traceback or higher has been entered the error member is set TRUE. Each function with an ObitErr argument should check at the beginning to see if an error condition already exists (error=TRUE) and if so return. Any function calling a function which encounters an error should add its message to the stack and return.
This class is a member of the Obit class and therefore cannot be derived from it. Also is not structured to be derived from.
|
|
Public: Constructor.
|
|
|
Public: Clear error stack.
|
|
|
Public: Clear only error messages and status in stack.
|
|
|
Public: Returns true if input is a ObitErr*.
|
|
|
Public: Write all entries in log file. Stack will be cleared when done
|
|
||||||||||||||||
|
Public: Pop last entry from top of stack. This item is then removed.
|
|
||||||||||||||||
|
Public: Add entry in error stack.
|
|
|
Public: Reference to object, update reference count. This function should always be used to copy pointers as this will ensure a proper reference count.
|
|
|
Public: Unreference object, destroy if no more references.
|
1.3.9.1