# Fortran error handling including stacktrace generation

**URL:** <https://fortran-lang.discourse.group/t/fortran-error-handling-including-stacktrace-generation/4648>\
**Category:** Announcements\
**Created:** [November 2, 2022, 7:24pm UTC](https://fortran-lang.discourse.group/t/fortran-error-handling-including-stacktrace-generation/4648 "2022-11-02T19:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [November 2, 2022, 8:32pm UTC](https://fortran-lang.discourse.group/t/fortran-error-handling-including-stacktrace-generation/4648/2 "2022-11-02T20:32:31Z")

</div>

Thanks for sharing your work. I remember there were a few interesting discussions on error handling before (threads [1114](https://fortran-lang.discourse.group/t/error-handling-approaches/1114) and [3050](https://fortran-lang.discourse.group/t/modernising-old-libraries-error-handling/3050) are just two).

There are a few more error handling libraries that define their own derived types, including (in no particular order)

- [GitHub - koenpoppe/ErrorHandlingInFortran2003](https://github.com/koenpoppe/ErrorHandlingInFortran2003)
- [GitHub - jchristopherson/ferror: A library to assist with error handling in Fortran projects.](https://github.com/jchristopherson/ferror)
- [GitHub - samharrison7/fortran-error-handler: Comprehensive error framework for applications requiring functional and robust error handling, utilising the power of modern object-oriented Fortran.](https://github.com/samharrison7/fortran-error-handler) (by @samharrison7)
- [GitHub - everythingfunctional/erloff: Errors and logging for fortran](https://github.com/everythingfunctional/erloff) (by @everythingfunctional)
- [GitHub - degawa/errstat: error status and message handling library for Modern Fortran](https://github.com/degawa/errstat) (by @tomohirodegawa)
- [GitHub - aradi/errorfx: Robust exception like error handling using modern Fortran](https://github.com/aradi/errorfx) (by @aradi, also announced in [ErrorFx: Fortran exception library](https://fortran-lang.discourse.group/t/errorfx-fortran-exception-library/2072))

Can you comment on how does your library differ or what does it do better? What other factors hinder the adoption of a common error handling module (and derived type)?

---

_[View the full topic](https://fortran-lang.discourse.group/t/fortran-error-handling-including-stacktrace-generation/4648)._
