|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.microedition.location.services.ServiceException
public class ServiceException
The ServiceException
is thrown when an error related
to handling service provider requests has occurred. This error situation can
be, for example, that the service provider does not support requested service
or it does not have the needed maps or navigation information to serve the
request. The more detailed reason for exception is described with the error
codes.
Field Summary | |
---|---|
static int |
NO_DATA
Service provider does not have needed data available |
static int |
NO_DATA_CONNECTION
Service provider needs information from the network and there is no data connection available. |
static int |
NO_LOCATION_INFORMATION
Service provider does not have information about the current location. |
static int |
SERVICE_FEE_NEEDED
The service requests requires a subscription from the service provider. |
Constructor Summary | |
---|---|
ServiceException(int errorCode,
java.lang.String message)
Constructs a ServiceException with the specified
error code and detailed message. |
Method Summary | |
---|---|
int |
getErrorCode()
Returns the error code associated with this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NO_LOCATION_INFORMATION
Service provider does not have information about the current location.
public static final int NO_DATA
Service provider does not have needed data available
public static final int NO_DATA_CONNECTION
Service provider needs information from the network and there is no data connection available.
public static final int SERVICE_FEE_NEEDED
The service requests requires a subscription from the service provider.
Constructor Detail |
---|
public ServiceException(int errorCode, java.lang.String message)
Constructs a ServiceException
with the specified
error code and detailed message.
errorCode
- the error code for the exceptionmessage
- the detailed message, may be null
Method Detail |
---|
public int getErrorCode()
Returns the error code associated with this exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |