:orphan:
# PetscPopErrorHandler
Removes the latest error handler that was pushed with `PetscPushErrorHandler()`.
## Synopsis
```
#include "petscsys.h"
PetscErrorCode PetscPopErrorHandler(void)
```
Not Collective
## See Also
`PetscPushErrorHandler()`
## Level
intermediate
## Location
src/sys/error/err.c
## Examples
src/ksp/ksp/tutorials/ex27.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/error/err.c)
[Index of all Sys routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)