Exceptions

The SDK provides the user a list of exceptions that they may use when calling any of the API's methods. This can come in handy when catching errors that will provide more details and that are specific to the Brady SDK.

SdkApiException

This is the base exception that will be extended by more specific exceptions (all listed below).

PrinterDiscoveryException

Can be caught when a discovery error occurs when the PrinterDiscoveryFactory.getPrinterDiscovery method is called.

TemplateError

Can be caught when a template error occurs when the TemplateFactory.getTemplate method is called.

TemplateNotLoadedException

Can be caught when a template error occurs while calling on a Template object.