The printer error that occurred.
[Visual Basic]
Public ReadOnly Property ErrorType As ErrorTypes
[C#]
public LinePrinterException.ErrorTypes ErrorType {get;}
The three ErrorTypes are:
PRINTER_ERROR
These errors are generated by printer or communication driver errors. The PortName value includes the error code:
PortName | Error Description |
---|---|
NPCP | ErrorCode contains an NPCP error code. Check NPCP documentation to determine meaning. |
IRDA | ERROR_NOIRDADEVICE: No IRDA device in range. COR_E_IO: Check InnerException for System.IO.IOException |
Serial | ErrorCode contains the GetLastError of the Win32 function that returned an error. |
WIFI | A standard HRESULT that may be looked up with the Visual Studio Error Lookup tool. |
CONFIG_ERROR
Configuration errors are thrown when the LinePrinter can not find the information needed to configure itself:
ErrorCode | Error Description |
---|---|
ERROR_INVALIDXML | XML Printer configuration file is flawed or missing. |
ERROR_REGISTERDEVICE | LinePrinter could not register a driver needed for the selected PrinterPort. |
ERROR_NOT_SUPPORTED | Configuration File is specifying that an unsupported port has been selected. |
SYSTEM_ERROR
An unexpected System.Exception was thrown. The System.Exception will be passed in InnerException.