/Users/detro/workspace-nb/JAEBI-BlueToothJ2MEClient/src/org/jaebi/midlet/bt/discoveryHandling/ServiceSearchError.java

Vai alla documentazione di questo file.
00001 /*
00002  * ServiceSearchError.java
00003  *
00004  * Created on 6 giugno 2005, 17.27
00005  * Questa classe incapsula gli errori
00006  * TODO in questa classe vedo anche le costanti 
00007  */
00008 
00009 package org.jaebi.midlet.bt.discoveryHandling;
00010 
00011 import javax.bluetooth.RemoteDevice;
00012 
00017 public class ServiceSearchError extends DiscoveryError {
00018     
00020     public static final int CANT_START_SEARCH = 2;
00021     
00022     public static final int SEARCH_ERROR = 3;
00023     
00024     public static final int SEARCH_TERMINATED = 4;
00025     
00026     public static final int NO_RECORD = 5;
00027     
00028     public static final int DEVICE_NOT_REACHABLE = 6;
00029     
00030     public static final int UNEXPECTED_TRANS_ID = 7;
00031     
00032     
00033     
00034     
00035    
00037     private RemoteDevice remoteDevice = null;
00038     
00039     private int errorCode;
00040     
00041     private String errorMsg;
00042     
00044     public ServiceSearchError(int errorCode, String msg, RemoteDevice rd){
00045         super(errorCode, msg);
00046         this.remoteDevice = rd;
00047     }
00048     
00049     /*
00050      * ritorna la device Bt su cui è avvenuto l'errore, null se l'errore ha codice
00051      * UNEXPECTED_TRANS_ID
00052      */
00053     public RemoteDevice getRemoteDevice(){
00054         return remoteDevice;
00055     }
00056     
00057 }

Generato il Thu Jun 23 00:02:59 2005 per JAEBI - BlueTooth J2ME Midlet Client da  doxygen 1.4.3