PreviousNext

Dealing with Errors and Exceptions

The dcecp interpreter includes error facilities that return error information when something goes wrong with a dcecp script. Error information tells users what went wrong so that they can avoid making the same mistake in the future. Many things can cause dcecp errors. For instance, a command might not receive the correct number of arguments, a command might have a typographic error of some kind, or the object of an operation, such as a CDS directory, might be unavailable for some reason.

Here, we discuss three ways of dealing with errors and exceptions:

· using global error information variables

· catching exceptions

· reissuing complex errors

More:

Using Global Error Information Variables

Using Catch to Trap Errors and Exceptions

Reissuing Complex Errors