Bootstrap
Docs HomeProduct SiteSupport
  • Introduction
  • Buttons
    • Configuration
    • Data Binding
  • Checkboxes
    • Configuration
    • Data Binding
    • Events
  • Input
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Modals
    • Message
    • Error
  • Search List
    • Configuration
    • Data Binding
    • Methods
  • Select
    • Configuration
    • Data Binding
    • Events
  • Table
    • Configuration
    • Data Binding
    • Events
  • Web Components
Powered by GitBook
On this page
  1. Modals

Error

PreviousMessageNextSearch List

Last updated 2 years ago

Details from an exception thrown from either a data service or on the client can be displayed in a modal using the wire.bsErrorModal function.

Note, the bsErrorModal function requires the Bootstrap 4+ JavaScript library. This library can be downloaded or referenced via CDN from .

The example below deliberately throws an exception and displays details of the exception by passing the exception object to the error modal.

try {
    throw "This is an error";
}
catch(ex){
    wire.bsErrorModal(ex);
}
https://www.bootstrapcdn.com