com.nokia.mid.ui
Class SoftNotificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.nokia.mid.ui.SoftNotificationException
All Implemented Interfaces:
java.io.Serializable

public class SoftNotificationException
extends java.lang.Exception

This API is an optional feature in Nokia UI API, and depending on the device capabilities there may be implementations that do not support soft notifications. The System.getProperty("com.nokia.mid.ui.softnotification") will return "true" if this feature is available in the device.

Since:
1.3
See Also:
SoftNotification, Serialized Form

Constructor Summary
protected SoftNotificationException()
          Default constructor is not allowed.
  SoftNotificationException(java.lang.String info)
          Constructs an exception instance with a textual information.
  SoftNotificationException(java.lang.String info, int errorCode)
          Constructs an exception instance with a textual information and the error code of the native call.
 
Method Summary
 int getErrorCode()
          Returns with the native error code.
 java.lang.String toString()
          Constructs human readable textual information.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoftNotificationException

protected SoftNotificationException()
Default constructor is not allowed.


SoftNotificationException

public SoftNotificationException(java.lang.String info)
Constructs an exception instance with a textual information.

Parameters:
info - human readable information about the exception.

SoftNotificationException

public SoftNotificationException(java.lang.String info,
                                 int errorCode)
Constructs an exception instance with a textual information and the error code of the native call.

Parameters:
info - human readable information about the exception.
errorCode - the error code received from native side.
Method Detail

toString

public java.lang.String toString()
Constructs human readable textual information.

Overrides:
toString in class java.lang.Throwable
Returns:
String the human readable textual information.

getErrorCode

public int getErrorCode()
Returns with the native error code.

Returns:
Native error code.

forum.nokia.com/java

Copyright (c) 2002-2010 Nokia Corporation. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc.