| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nokia.notifications.NotificationError
public class NotificationError
This class defines all the error codes used by NotificationException
 and NotificationState.
| Field Summary | |
|---|---|
| static int | ERROR_APPLICATION_ID_CONFLICTConflicting Application ID. | 
| static int | ERROR_APPLICATION_ID_INVALIDReturned when trying to register MIDlet with invalid Application ID. | 
| static int | ERROR_AUTHENTICATION_FAILEDThis error occurs if the device is not able to fetch the authentication details from server. | 
| static int | ERROR_CONNECTION_DISABLED_BY_USERUser has disabled all connections like WiFi and Cellular network. | 
| static int | ERROR_DISABLED_BY_USERUser has disabled all notifications for this MIDlet. | 
| static int | ERROR_ENABLER_EXITEDDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_ENABLER_NOT_FOUNDDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_INVALID_SERVICE_IDDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_NO_ACCOUNTDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_NO_NETWORKNetwork connection not available. | 
| static int | ERROR_NONENo error occurred. | 
| static int | ERROR_NOT_ALLOWEDNotificationSessionis not in correct state. | 
| static int | ERROR_NOT_KNOWNReturned when error is anything other than listed above. | 
| static int | ERROR_NOT_REGISTEREDMIDlet is not registered but it called a function that requires registration. | 
| static int | ERROR_NOTIFICATION_ID_INVALIDATEDDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_OFFLINEDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_OPERATION_FAILEDDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_REGISTER_FAILEDRegistration failed because there is not enough space available in the device memory to store the settings. | 
| static int | ERROR_SERVICE_ID_CONFLICTDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| static int | ERROR_SERVICE_UNAVAILABLENotification service is no longer available because service's authentication has expired. | 
| static int | ERROR_SESSION_CLOSEDNotificationSessionfunction call failed because session was
 closed. | 
| static int | ERROR_UNREGISTER_FAILEDDeprecated. This is not supported in Nokia Asha OS 1.0. | 
| Constructor Summary | |
|---|---|
| NotificationError() | |
| Method Summary | 
|---|
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int ERROR_NONE
public static final int ERROR_OPERATION_FAILED
public static final int ERROR_SESSION_CLOSED
NotificationSession function call failed because session was
 closed.
 
 To fix the error MIDlet should first call
 NotificationSessionFactory.openSession(javax.microedition.midlet.MIDlet, java.lang.String, java.lang.String, com.nokia.notifications.NotificationSessionListener).
 
public static final int ERROR_NOT_ALLOWED
 NotificationSession is not in correct state. This error occurs
 when NotificationSession.getNotificationInformation() is called
 before NotificationSession is in
 NotificationState.STATE_ONLINE.
 
 To recover MIDlet should wait until it gets
 NotificationSessionListener.stateChanged(com.nokia.notifications.NotificationState) callback with
 NotificationState.STATE_ONLINE and then call
 NotificationSession.getNotificationInformation() again to get
 Notification ID.
 
public static final int ERROR_NO_ACCOUNT
public static final int ERROR_OFFLINE
public static final int ERROR_ENABLER_NOT_FOUND
public static final int ERROR_NO_NETWORK
public static final int ERROR_APPLICATION_ID_CONFLICT
public static final int ERROR_SERVICE_ID_CONFLICT
public static final int ERROR_SERVICE_UNAVAILABLE
public static final int ERROR_REGISTER_FAILED
public static final int ERROR_UNREGISTER_FAILED
public static final int ERROR_INVALID_SERVICE_ID
public static final int ERROR_NOTIFICATION_ID_INVALIDATED
public static final int ERROR_DISABLED_BY_USER
public static final int ERROR_ENABLER_EXITED
public static final int ERROR_NOT_REGISTERED
 The following function may have been called before calling
 NotificationSession.registerApplication():
 
NotificationSession.unregisterApplication()NotificationSession.getReceiveAtLatest()NotificationSession.setReceiveAtLatest(int)NotificationSession.isAudioAlertEnabled()NotificationSession.setAudioAlertEnabled(boolean)
 To fix this error MIDlet should first call
 NotificationSession.registerApplication().
 
public static final int ERROR_AUTHENTICATION_FAILED
public static final int ERROR_APPLICATION_ID_INVALID
public static final int ERROR_CONNECTION_DISABLED_BY_USER
public static final int ERROR_NOT_KNOWN
| Constructor Detail | 
|---|
public NotificationError()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||