We're a place where coders share, stay up-to-date and grow their careers.
If your use case is logging the exception use logger.exception("Cancelled error") which logs the exception and the stacktrace
logger.exception("Cancelled error")
If your use case is logging the exception use
logger.exception("Cancelled error")
which logs the exception and the stacktrace