public class PrinterException
extends java.lang.Exception
Printer
class.Modifier and Type | Field and Description |
---|---|
static int |
ERROR_ALREADY_CONNECTED
An active printer connection already exists.
|
static int |
ERROR_FILE_INVALID
The commands and attributes JSON file or string contains invalid contents.
|
static int |
ERROR_FILE_NOT_FOUND
The specified file cannot be found.
|
static int |
ERROR_INVALID_NET_ADDRESS
The network address is invalid.
|
static int |
ERROR_INVALID_PRINTER_ID
The printer identifier is invalid.
|
static int |
ERROR_NO_CONNECTION
The printer is not connected.
|
Constructor and Description |
---|
PrinterException(java.lang.String aMsg,
int aErrorCode)
Constructs a PrinterException object with the specified detail
message and error code.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code associated with this exception.
|
public static final int ERROR_NO_CONNECTION
connect()
method.public static final int ERROR_ALREADY_CONNECTED
public static final int ERROR_FILE_NOT_FOUND
public static final int ERROR_INVALID_PRINTER_ID
public static final int ERROR_INVALID_NET_ADDRESS
public static final int ERROR_FILE_INVALID
Copyright (c) 2013-2015 Honeywell International Inc. All rights reserved.