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

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.0
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
getMessage, printStackTrace
 
Methods inherited from class java.lang.Object
equals, 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 - received from native side.
Method Detail

toString

public java.lang.String toString()
Constructs human readable textual information. { @inheritDoc toString in class java.lang.Throwable }

Overrides:
toString in class java.lang.Throwable

getErrorCode

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



Copyright © 2012 Nokia Corporation. All rights reserved.

Nokia is registered trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. Other product and company names mentioned herein may be trademarks or trade names of their respective owners. This document is confidential information of Nokia Corporation.

Disclaimer
The information in this document is provided "as is," with no warranties whatsoever, including any warranty of merchantability, fitness for any particular purpose, or any warranty otherwise arising out of any proposal, specification, or sample. Furthermore, information provided in this document is preliminary, and may be changed substantially prior to final release.

Nokia Corporation disclaims all liability, including liability for infringement of any proprietary rights, relating to this document and implementation of any information presented in this document.

Nokia Corporation retains the right to make changes to this document at any time, without notice.

License
Subject to above disclaimer, a license is hereby granted to use this documentation solely under existing Limited License Agreement and non-disclosure agreement between the companies for the agreed application development for Series 40 Nokia phones. No other licenses e.g. to any intellectual property rights are granted herein. Any use of the screen shots of this documentation, including any icons thereof, is subject to Nokia's prior written approval.