Set err to ERROR_VALIDATION with message, when err is present.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(error_t), | intent(out), | optional | :: | err | ||
| character(len=*), | intent(in) | :: | message |
Human-readable description of the violation |
pure subroutine fail(err, message) !! Set `err` to `ERROR_VALIDATION` with `message`, when `err` is present. type(error_t), intent(out), optional :: err character(len=*), intent(in) :: message !! Human-readable description of the violation if (present(err)) call err%set(ERROR_VALIDATION, message) end subroutine fail