File:  [parser3project] / parser3 / tests / 347-curl.html
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Fri Dec 13 13:28:36 2024 UTC (18 months, 4 weeks ago) by moko
Branches: MAIN
CVS tags: HEAD
support for different error messages

@main[]

1. ^curl:options[ $.library[no-such-library.ext] ]
2. ^try-catch{ ^curl:session{ } }
3. ^try-catch{ ^curl:session{ } }
4. ^curl:options[ $.library[another-library.ext] ]
5. ^try-catch{ ^curl:session{ } }
6. ^curl:options[ $.library[] ]
7. ^try-catch{ ^curl:session{ OK } }

@try-catch[jCode]
^try{$jCode}{
	$exception.handled(1)
	Exception type: $exception.type,
	Source: $exception.source,
	Comment: ^exception.comment.match[(failed to load curl library).*(no-such-library.ext|another-library.ext).*][]{$match.1 ... $match.2 ...}
}

E-mail: