com.nokia.notifications
Class NotificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.nokia.notifications.NotificationException
All Implemented Interfaces:
java.io.Serializable

public class NotificationException
extends java.lang.Exception

Exception for notification actions.

See Also:
Serialized Form

Constructor Summary
NotificationException(int reason)
          Creates a new NotificationException instance.
NotificationException(int reason, java.lang.String msg)
          Creates a new NotificationException instance.
 
Method Summary
 int getReason()
          Returns the reason for the exception.
 java.lang.String toString()
           
 
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

NotificationException

public NotificationException(int reason,
                             java.lang.String msg)
Creates a new NotificationException instance.

Parameters:
reason - the reason for the exception, one of the constants defined in NotificationError.
msg - the exception message, may be null

NotificationException

public NotificationException(int reason)
Creates a new NotificationException instance.

Parameters:
reason - reason for the exception, one of the constants defined in NotificationError.
Method Detail

getReason

public int getReason()
Returns the reason for the exception.

Returns:
the reason for the exception, one of the constants defined in NotificationError.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable