PetscTraceBackErrorHandlerCxx

Error handler routine that generate a traceback in a C++ stream.

Synopsis

#include "petscsys.h" 
PetscErrorCode  PetscTraceBackErrorHandlerCxx(MPI_Comm comm,int line,const char *fun,const char* file,const char *dir,PetscErrorCode n,PetscErrorType p, const char *mess,void *ctx)
Not Collective

Input Parameters

Notes

Most users need not directly employ this routine and the other error handlers, but can instead use the simplified interface SETERROR, which has the calling sequence
    SETERROR(number,n,mess)

See Also

PetscPushErrorHandler(), PetscAttachDebuggerErrorHandler(), PetscAbortErrorHandler()

Level:developer
Location:
src/sys/error/errtrace.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

comm - communicator over which error occurred
line - the line number of the error (indicated by __LINE__)
func - the function where error is detected (indicated by __FUNCT__)
file - the file in which the error was detected (indicated by __FILE__)
dir - the directory of the file (indicated by __SDIR__)
n - the generic error number
p - PETSC_ERROR_INITIAL or PETSC_ERROR_REPEAT
mess - the error message + ctx - error handling context, in this case the C++ stream.