# Try

A utillity component to wrap around components that may or may not throw and error or reject a promise. Provides you with some logic to handle those errors.

# Installation


// main.js
import Vue from 'vue';
import { VTry } from 'vuetensils/src/components';

Vue.component('VTry', VTry);


// SomeComponent.vue
import { VTry } from 'vuetensils/src/components';

export default {
  components: {
  // ...

# Default Example

# With Rejected Promise

# Events

# Catch Slot

If you want to only show the error handling template on errors, then the catch slot can simplify the logic.

Last Updated: 8/6/2021, 10:27:34 PM