# 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

Globally:

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

Vue.component('VTry', VTry);

Locally:

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

export default {
  components: {
    VTry,
  },
  // ...
};
</script>

# 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: 7/7/2020, 10:03:39 PM