mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<title>Exception Test</title>
|
|
<script type="text/javascript">
|
|
function logException(e) {
|
|
document.write(e.message.replace(/\n/g, '<br />') + "<br />Stack:<br />" + e.stack.replace(/\n/g, '<br />'));
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Exception string for nested exceptions:<br />
|
|
<script type="text/javascript">
|
|
try {
|
|
bound.exceptionTestObject.triggerNestedExceptions();
|
|
document.write("Fatal: No Exception.");
|
|
} catch (e) {
|
|
logException(e);
|
|
}
|
|
</script>
|
|
</p>
|
|
<p>
|
|
Exception string for wrong parameter type:<br />
|
|
<script type="text/javascript">
|
|
try {
|
|
bound.exceptionTestObject.triggerParameterException(Math.PI);
|
|
document.write("Fatal: No Exception.");
|
|
} catch (e) {
|
|
logException(e);
|
|
}
|
|
</script>
|
|
</p>
|
|
<p>
|
|
Exception string for missing parameter:<br />
|
|
<script type="text/javascript">
|
|
try {
|
|
bound.exceptionTestObject.triggerParameterException();
|
|
document.write("Fatal: No Exception.");
|
|
} catch (e) {
|
|
logException(e);
|
|
}
|
|
</script>
|
|
</p>
|
|
</body>
|
|
</html>
|