Alternate version of json_throw_exception, where msg
is kind=CDK.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_core), | intent(inout) | :: | json | |||
character(kind=CDK,len=*), | intent(in) | :: | msg | the error message |
subroutine wrap_json_throw_exception(json,msg)
implicit none
class(json_core),intent(inout) :: json
character(kind=CDK,len=*),intent(in) :: msg !! the error message
call json%throw_exception(to_unicode(msg))
end subroutine wrap_json_throw_exception