O'Reilly logo

Web Programming with Dart by Patricia Juberias, Moises Belchin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 24

image

An Advanced Syntax Summary

When you learn a new programming language, it is very useful to have a cheat sheet to check quickly the main instructions and the syntax. Here’s the summary of syntax we have learned until now.

Exceptions and Errors

Table 24-1 lists the exception management cheat sheet and some examples of use. In Tables 24-2 and 24-3 you can see the Exception and Error types supported in Dart.

Table 24-1. Exception Management Cheat Sheet

EXCEPTION MANAGEMENT

throw

To throw exceptions

try {}, on {}, catch {}

To catch exceptions

finally {}

To execute a code snippet always, occurs or not an exception

Table 24-2. Exception Types Cheat ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required