/
error.vue
35 lines (34 loc) · 1.49 KB
/
error.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template>
<div class="grid grid-nogutter justify-content-center align-content-center h-screen w-screen bg-black-alpha-90">
<Card class="col-12 md:col-6 lg:col-4 bg-primary-reverse shadow-8">
<template #title>
<h2 class="my-4 text-center text-color">Error happened</h2>
</template>
<template #content>
<div class="col-12 grid">
<div class="col-12">
<div class="text-color">
<h5>Error Status Code</h5>
<Button
:label="error.statusCode"
class="p-button-outlined p-button-danger"
disabled
/>
</div>
</div>
<div class="col-12">
<div class="text-color">
<h5>Error Details</h5>
<Button :label="error.message" class="p-button-outlined p-button-danger" disabled />
</div>
</div>
</div>
<divider></divider>
<div class="col-12 grid"></div>
</template>
</Card>
</div>
</template>
<script setup>
defineProps(['error']);
</script>