With the declareerror or declare warning syntax, you can customize the ajc compiler's response to the potential occurrence of a join point, as shown in Listing 7.
For both databases you can declareerror handlers that will determine what action are taken if an SQL statement fails with a particular error code (SQLCODE or SQLSTATE).