try {
  //  Block of code to run
}
catch(Exception e) {
  //  Block of code to handle errors
}