wrap_json_throw_exception Subroutine

private subroutine wrap_json_throw_exception(json, msg)

Alternate version of json_throw_exception, where msg is kind=CDK.

Arguments

Type IntentOptional AttributesName
class(json_core), intent(inout) :: json
character(kind=CDK,len=*), intent(in) :: msg

the error message


Calls

proc~~wrap_json_throw_exception~~CallsGraph proc~wrap_json_throw_exception wrap_json_throw_exception interface~to_unicode to_unicode proc~wrap_json_throw_exception->interface~to_unicode proc~to_uni to_uni interface~to_unicode->proc~to_uni proc~to_uni_vec to_uni_vec interface~to_unicode->proc~to_uni_vec

Contents


Source Code

    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