Raise an exception.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(rk_class), | intent(inout) | :: | me | |||
integer, | intent(in) | :: | error_code |
the error to raise |
subroutine raise_exception(me, error_code) class(rk_class),intent(inout) :: me integer,intent(in) :: error_code !! the error to raise me%istatus = error_code if (error_code<0 .and. me%stop_on_errors) then error stop trim(rklib_error_messages(error_code)) end if end subroutine raise_exception