wrap_json_throw_exception Subroutine

private subroutine wrap_json_throw_exception(json, msg, found)

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

logical(kind=LK), intent(inout), optional :: found

if the caller is handling the exception with an optimal return argument. If so, json%stop_on_error is ignored.


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_vec to_uni_vec interface~to_unicode->proc~to_uni_vec proc~to_uni to_uni interface~to_unicode->proc~to_uni

Contents


Source Code

    subroutine wrap_json_throw_exception(json,msg,found)

    implicit none

    class(json_core),intent(inout)  :: json
    character(kind=CDK,len=*),intent(in) :: msg    !! the error message
    logical(LK),intent(inout),optional  :: found  !! if the caller is handling the
                                                  !! exception with an optimal return
                                                  !! argument. If so, `json%stop_on_error`
                                                  !! is ignored.

    call json%throw_exception(to_unicode(msg),found)

    end subroutine wrap_json_throw_exception