com.nokia.notifications
public class NotificationException extends java.lang.Exception
Constructor and Description |
---|
NotificationException(int reason)
Creates a new
NotificationException instance. |
NotificationException(int reason,
java.lang.String msg)
Creates a new
NotificationException instance. |
Modifier and Type | Method and Description |
---|---|
int |
getReason()
Returns the reason for the exception.
|
java.lang.String |
toString() |
public NotificationException(int reason, java.lang.String msg)
NotificationException
instance.reason
- the reason for the exception, one of the constants defined
in NotificationError
.msg
- the exception message, may be null
public NotificationException(int reason)
NotificationException
instance.reason
- reason for the exception, one of the constants defined in
NotificationError
.public int getReason()
NotificationError
.public java.lang.String toString()
toString
in class java.lang.Throwable