[SerializableAttribute()]
public class PrinterDriverClientException : Exception
The PrinterDriverClientException class defines a Code property that is helpful to determine the cause of an error.
Default messages are implemented for each Code, you can however modify any message through the GetCodeMessage and SetCodeMessage methods.
using Leadtools.Printer.Client.Installer;
public void PrinterInstallerExample()
{
try
{
PrinterInstaller.SetPrinterConnectionDll("Test Printer", "C:\\Test Dll.dll", "Test Server");
}
catch (PrinterDriverClientException ex)
{
Console.WriteLine(ex.Message);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}