File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1997,14 +1997,18 @@ end subroutine json_throw_exception
1997
1997
! >
1998
1998
! Alternate version of [[json_throw_exception]], where `msg` is kind=CDK.
1999
1999
2000
- subroutine wrap_json_throw_exception (json ,msg )
2000
+ subroutine wrap_json_throw_exception (json ,msg , found )
2001
2001
2002
2002
implicit none
2003
2003
2004
2004
class(json_core),intent (inout ) :: json
2005
2005
character (kind= CDK,len=* ),intent (in ) :: msg ! ! the error message
2006
+ logical (LK),intent (inout ),optional :: found ! ! if the caller is handling the
2007
+ ! ! exception with an optimal return
2008
+ ! ! argument. If so, `json%stop_on_error`
2009
+ ! ! is ignored.
2006
2010
2007
- call json% throw_exception(to_unicode(msg))
2011
+ call json% throw_exception(to_unicode(msg),found )
2008
2012
2009
2013
end subroutine wrap_json_throw_exception
2010
2014
! *****************************************************************************************
You can’t perform that action at this time.
0 commit comments