#include "petsc.h" #include "petscsys.h" int PetscAttachDebuggerErrorHandler(int line,char* fun,char *file,char* dir,int num,int p,char* mess,void *ctx)Not Collective
line | - the line number of the error (indicated by __LINE__) | |
fun | - function where error occured (indicated by __FUNCT__) | |
file | - the file in which the error was detected (indicated by __FILE__) | |
dir | - the directory of the file (indicated by __SDIR__) | |
message | - an error text string, usually just printed to the screen | |
number | - the generic error number | |
p | - the specific error number | |
ctx | - error handler context |
Most users need not directly employ this routine and the other error handlers, but can instead use the simplified interface SETERR, which has the calling sequence
SETERRQ(number,p,message)
PetscTraceBackErrorHandler()
PetscAttachDebuggerErrorHandler()
PetscAbortErrorHandler()or you may write your own.
Level:developer
Location:src/sys/src/error/adebug.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages