com.sap.ip.me.api.pios.printer
Class PrinterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sap.ip.me.api.services.MEException
              extended bycom.sap.ip.me.api.pios.PIOSException
                  extended bycom.sap.ip.me.api.pios.printer.PrinterException
All Implemented Interfaces:
java.io.Serializable

public class PrinterException
extends PIOSException

An exception thrown when an error occurs during printer operation.

Since:
MI 2.5
Author:
Abaco
See Also:
Serialized Form

Field Summary
static int BUSY_AFTER_PRINT
          Constant to indicate printer busy after print.
static int INVALID_ALIGNMENT
          Constant to indicate invalid alignment value.
static int INVALID_BARCODE_DATA
          Constant to indicate invalid barcode data.
static int INVALID_COORDINATES
          Constant to indicate invalid coordinate value.
static int INVALID_FONT_CONFIGURATION
          Constant to indicate invalid font configuration.
static int INVALID_FONT_ERROR
          Constant to indicate invalid font value.
static int INVALID_IMAGE_TYPE
          Constant to indicate invalid image type.
static int INVALID_LINE_THICKNESS
          Constant to indicate invalid line thickness.
static int INVALID_PARAMETER
          Constant to indicate invalid parameter.
static int INVALID_ROTATION
          Constant to indicate invalid rotation value.
static int PRINTER_UNSUPPORTED_IMAGETYPE
          Constant to indicate unsupported image type.
static int PRINTER_UNSUPPORTED_SYMBOLOGY
          Constant to indicate unsupported symbology by the printer.
static int UNABLE_TO_CALCULATE_METRICS
          Constant to indicate that connection was unable to calculate size of a field.
static int UNABLE_TO_CREATE_IMAGE
          Constant to indicate that connection was unable to create image.
static int UNABLE_TO_CREATE_JOB
          Constant to indicate that connection was unable to start print operation.
static int UNABLE_TO_DELETE_IMAGE
          Constant to indicate that connection was unable to delete image.
static int UNABLE_TO_DRAW_IMAGE
          Constant to indicate that connection was unable to draw image.
static int UNABLE_TO_OPEN_PRINTER
          Constant to indicate that connection could not be open.
static int UNABLE_TO_PRINT_JOB
          Constant to indicate that connection was unable finish print operation.
static int UNABLE_TO_QUERY_STATUS
          Constant to indicate when connection is unable to query printer status.
static int UNABLE_TO_UPLOAD_IMAGE
          Constant to indicate that connection was unable to upload image to printer.
static int UNKNOWN_PRINTER_ERROR
          Constant to indicate unknown error occurred.
 
Fields inherited from class com.sap.ip.me.api.pios.PIOSException
ALREADY_CREATED, ALREADY_OPENED, CONFIGURATION_ERROR, GENERIC_ERROR, INVALID_OBJECT, INVALID_SYMBOLOGY, LIBRARY_NOT_LOADED, NOT_CREATED, NOT_OPENED, OUT_OF_MEMORY, SPECIFIC_PRINTER_ERROR, SPECIFIC_RFID_ERROR, SPECIFIC_SCANNER_ERROR, TIMEOUT, UNKNOWN_ERROR, UNSPECIFIED_ERROR, UNSUPPORTED
 
Constructor Summary
PrinterException(int errorCode, java.lang.String message)
          Constructs a new PrinterException with the specified message.
PrinterException(int errorCode, java.lang.Throwable cause)
          Constructs a new PrinterException with the specified error code and cause.
PrinterException(java.lang.String message)
          Constructs a new PrinterException with the specified message.
PrinterException(java.lang.Throwable cause)
          Constructs a new PrinterException based on the stack trace of the thrown exception.
 
Methods inherited from class com.sap.ip.me.api.pios.PIOSException
getErrorCode, getException
 
Methods inherited from class com.sap.ip.me.api.services.MEException
getNestedException, getReason, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_PRINTER_ERROR

public static final int UNKNOWN_PRINTER_ERROR
Constant to indicate unknown error occurred.

See Also:
Constant Field Values

INVALID_FONT_ERROR

public static final int INVALID_FONT_ERROR
Constant to indicate invalid font value.

See Also:
Constant Field Values

INVALID_PARAMETER

public static final int INVALID_PARAMETER
Constant to indicate invalid parameter.

See Also:
Constant Field Values

INVALID_FONT_CONFIGURATION

public static final int INVALID_FONT_CONFIGURATION
Constant to indicate invalid font configuration.

See Also:
Constant Field Values

INVALID_COORDINATES

public static final int INVALID_COORDINATES
Constant to indicate invalid coordinate value.

See Also:
Constant Field Values

INVALID_ALIGNMENT

public static final int INVALID_ALIGNMENT
Constant to indicate invalid alignment value.

See Also:
Constant Field Values

INVALID_ROTATION

public static final int INVALID_ROTATION
Constant to indicate invalid rotation value.

See Also:
Constant Field Values

INVALID_IMAGE_TYPE

public static final int INVALID_IMAGE_TYPE
Constant to indicate invalid image type.

See Also:
Constant Field Values

INVALID_LINE_THICKNESS

public static final int INVALID_LINE_THICKNESS
Constant to indicate invalid line thickness.

See Also:
Constant Field Values

UNABLE_TO_OPEN_PRINTER

public static final int UNABLE_TO_OPEN_PRINTER
Constant to indicate that connection could not be open.

See Also:
Constant Field Values

UNABLE_TO_QUERY_STATUS

public static final int UNABLE_TO_QUERY_STATUS
Constant to indicate when connection is unable to query printer status.

See Also:
Constant Field Values

UNABLE_TO_CREATE_JOB

public static final int UNABLE_TO_CREATE_JOB
Constant to indicate that connection was unable to start print operation.

See Also:
Constant Field Values

UNABLE_TO_PRINT_JOB

public static final int UNABLE_TO_PRINT_JOB
Constant to indicate that connection was unable finish print operation.

See Also:
Constant Field Values

UNABLE_TO_CREATE_IMAGE

public static final int UNABLE_TO_CREATE_IMAGE
Constant to indicate that connection was unable to create image.

See Also:
Constant Field Values

UNABLE_TO_UPLOAD_IMAGE

public static final int UNABLE_TO_UPLOAD_IMAGE
Constant to indicate that connection was unable to upload image to printer.

See Also:
Constant Field Values

UNABLE_TO_DRAW_IMAGE

public static final int UNABLE_TO_DRAW_IMAGE
Constant to indicate that connection was unable to draw image.

See Also:
Constant Field Values

UNABLE_TO_DELETE_IMAGE

public static final int UNABLE_TO_DELETE_IMAGE
Constant to indicate that connection was unable to delete image.

See Also:
Constant Field Values

UNABLE_TO_CALCULATE_METRICS

public static final int UNABLE_TO_CALCULATE_METRICS
Constant to indicate that connection was unable to calculate size of a field.

See Also:
Constant Field Values

PRINTER_UNSUPPORTED_SYMBOLOGY

public static final int PRINTER_UNSUPPORTED_SYMBOLOGY
Constant to indicate unsupported symbology by the printer.

See Also:
Constant Field Values

PRINTER_UNSUPPORTED_IMAGETYPE

public static final int PRINTER_UNSUPPORTED_IMAGETYPE
Constant to indicate unsupported image type.

See Also:
Constant Field Values

INVALID_BARCODE_DATA

public static final int INVALID_BARCODE_DATA
Constant to indicate invalid barcode data.

See Also:
Constant Field Values

BUSY_AFTER_PRINT

public static final int BUSY_AFTER_PRINT
Constant to indicate printer busy after print.

See Also:
Constant Field Values
Constructor Detail

PrinterException

public PrinterException(java.lang.String message)
Constructs a new PrinterException with the specified message.

Parameters:
message - the exception message

PrinterException

public PrinterException(int errorCode,
                        java.lang.String message)
Constructs a new PrinterException with the specified message.

Parameters:
errorCode - the error code number
message - the exception message

PrinterException

public PrinterException(java.lang.Throwable cause)
Constructs a new PrinterException based on the stack trace of the thrown exception.

Parameters:
cause - the exception cause
See Also:
PIOSException.getException(java.lang.Throwable)

PrinterException

public PrinterException(int errorCode,
                        java.lang.Throwable cause)
Constructs a new PrinterException with the specified error code and cause.

Parameters:
errorCode - the error code number
cause - the exception cause


Copyright © 2005 SAP AG. All Rights Reserved.