Clear the error state and stack trace
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(error_t), | intent(inout) | :: | this |
pure subroutine error_clear(this) !! Clear the error state and stack trace class(error_t), intent(inout) :: this this%code = SUCCESS this%stack_depth = 0 if (allocated(this%message)) deallocate (this%message) end subroutine error_clear