Class PTIException
The root of all exception classes in PTIRelianceLib. For convenience, you may wrap library calls with a catcher for this class.
using(var printer = new ReliancePrinter())
{
try
{
printer.FlashUpdateTarget(myFirmware, myReporter);
}
catch(PTIException ex)
{
Console.WriteLine(ex.Message);
}
}
Inheritance
System.Object
PTIException
Namespace: PTIRelianceLib
Assembly: PTIRelianceLib.dll
Syntax
public class PTIException : Exception
Constructors
| Improve this Doc View SourcePTIException(String, Object[])
Creates a new excception using convenience formatters
Declaration
public PTIException(string fmt, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | fmt | Format string |
System.Object[] | args | 0 or more args for format string |