FileDocCategorySizeDatePackage
BluetoothConnectionException.javaAPI DocphoneME MR2 API (J2ME)2884Wed May 02 18:00:30 BST 2007javax.bluetooth

BluetoothConnectionException

public class BluetoothConnectionException extends IOException
This class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.

Fields Summary
public static final int
UNKNOWN_PSM
public static final int
SECURITY_BLOCK
public static final int
NO_RESOURCES
public static final int
FAILED_NOINFO
public static final int
TIMEOUT
public static final int
UNACCEPTABLE_PARAMS
private int
status
Contains the error code specified in constructor.
Constructors Summary
public BluetoothConnectionException(int error)

    
    // JAVADOC COMMENT ELIDED 
       
        this(error, null);
    
public BluetoothConnectionException(int error, String msg)

        super(msg);

        switch (error) {
        case UNKNOWN_PSM: /* falls through */
        case SECURITY_BLOCK: /* falls through */
        case NO_RESOURCES: /* falls through */
        case FAILED_NOINFO: /* falls through */
        case TIMEOUT: /* falls through */
        case UNACCEPTABLE_PARAMS:
            status = error;
            break;
        default:
            throw new IllegalArgumentException("Invalid error code: " + error);
        }
    
Methods Summary
public intgetStatus()

        return status;