File tree 1 file changed +9
-3
lines changed
example/vue/src/components
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 3
3
<h1 >{{ msg }}</h1 >
4
4
5
5
<p >
6
- This simple example will allow you to test the Exceptionless client configuration by submitting messages and errors.
6
+ This simple example will allow you to test the Exceptionless client configuration by submitting messages and errors.
7
7
</p >
8
8
9
9
<button @click =" throwError" >Simulate Error</button >
10
+ <button @click =" throwUnhandledError" style =" margin-left : 10px " >Simulate Unhandled Error</button >
10
11
<div v-if =" state.error" >
11
12
<p >
12
- Error message sent to Exceptionless:
13
+ Error message sent to Exceptionless:
13
14
</p >
14
15
<div style =" margin-top : 20px ;" >
15
16
<code style =" padding : 20px ; background : #282828 ; color : #fff ;" >{{state.error}}</code >
19
20
</template >
20
21
21
22
<script setup>
22
- import { defineProps , reactive } from ' vue'
23
+ import { defineProps , reactive } from ' vue' ;
24
+ import { Exceptionless } from " @exceptionless/vue" ;
23
25
24
26
defineProps ({
25
27
msg: String
@@ -35,6 +37,10 @@ const throwError = async () => {
35
37
await Exceptionless .submitException (error);
36
38
}
37
39
}
40
+
41
+ const throwUnhandledError = () => {
42
+ throw new Error (" Unhandled Vue Error" );
43
+ }
38
44
</script >
39
45
40
46
<style scoped>
You can’t perform that action at this time.
0 commit comments