javax.microedition.location.services
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.microedition.location.services.ServiceException
All Implemented Interfaces:
java.io.Serializable

public class ServiceException
extends java.lang.Exception

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.

Since:
2.0
See Also:
Serialized Form

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

NO_LOCATION_INFORMATION

public static final int NO_LOCATION_INFORMATION

Service provider does not have information about the current location.

See Also:
Constant Field Values

NO_DATA

public static final int NO_DATA

Service provider does not have needed data available

See Also:
Constant Field Values

NO_DATA_CONNECTION

public static final int NO_DATA_CONNECTION

Service provider needs information from the network and there is no data connection available.

See Also:
Constant Field Values

SERVICE_FEE_NEEDED

public static final int SERVICE_FEE_NEEDED

The service requests requires a subscription from the service provider.

See Also:
Constant Field Values
Constructor Detail

ServiceException

public ServiceException(int errorCode,
                        java.lang.String message)

Constructs a ServiceException with the specified error code and detailed message.

Parameters:
errorCode - the error code for the exception
message - the detailed message, may be null
Method Detail

getErrorCode

public int getErrorCode()

Returns the error code associated with this exception.

Returns:
the error code


Copyright © 2003-2008 Nokia Corporation. All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.