PETSc version 3.16.5
Fix/Edit manual page

# PetscErrorMessage

returns the text string associated with a PETSc error code.

### Synopsis

    #include "petscsys.h"
    PetscErrorCode  PetscErrorMessage(int errnum,const char *text[],char **specific)

Not Collective

### Input Parameter

| errnum | - the error code

### Output Parameters

| text | - the error message (NULL if not desired)
| specific | - the specific error message that was set with SETERRxxx() or PetscError(). (NULL if not desired)

### See Also

PetscPushErrorHandler(), PetscAttachDebuggerErrorHandler(), PetscError(), SETERRQ(), CHKERRQ()
PetscAbortErrorHandler(), PetscTraceBackErrorHandler()

### Level

developer

### Location

src/sys/error/err.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages