| gclib 2.0.7 Communications API for Galil controllers and PLCs |

## ◆ PrintError()

void examples.PrintError | ( | Gclib | gclib,
|  | Exception | ex
| ) |  |

Prints the exception to the console And queries the controller for the most recent error message.

Parameters

  gclib | The gclib object from where the exception originated.
  ex | The exception object caught by the example.

See commands_example.cs for an example.