PetscError

Routine that is called when an error has been detected, usually called through the macro SETERRQ().

Synopsis

int PetscError(int line,char *func,char* file,char *dir,int n,int p,char *mess)
Not Collective

Input Parameters

line - the line number of the error (indicated by __LINE__)
func - the function where the error occured (indicated by __FUNC__)
dir - the directory of file (indicated by __SDIR__)
file - the file in which the error was detected (indicated by __FILE__)
mess - an error text string, usually just printed to the screen
n - the generic error number
p - the specific error number

Notes

Most users need not directly use this routine and the error handlers, butcan instead use the simplified interface SETERRQ, which has the callingsequence
    SETERRQ(n,p,mess)

Experienced users can set the error handler with PetscPushErrorHandler().

Keywords

error, SETERRQ, SETERRA

See Also

PetscTraceBackErrorHandler(), PetscPushErrorHandler()

Location: src/sys/src/errorerr.c
System Index
Table of Contents