|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.rim.blackberry.api.sendmenu.SendCommandException
public class SendCommandException
Represents an exception for the Send Menu API.
An exception of this class is thrown from SendCommand.run()
to
indicate that an error occurred. In addition to the superclass,
Exception
, SendCommandException
stores
an error code to indicate programmatically what type of error occurred.
Field Summary | ||
---|---|---|
|
static int |
ERR_PERMISSIONS
An error code meaning that the application is not allowed to send the data. |
|
static int |
ERR_UNKNOWN
An error code meaning an unknown error. |
Constructor Summary | ||
---|---|---|
|
SendCommandException(String message)
Constructs a new SendCommandException instance with the
specified message and the SendCommandException.ERR_UNKNOWN error code. |
|
|
SendCommandException(String message,
int errorCode)
Constructs a new SendCommandException instance with the
specified message and error code. |
Method Summary | ||
---|---|---|
|
int |
getErrorCode()
Returns the error code of this SendCommandException . |
Methods inherited from class java.lang.Throwable |
---|
getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ERR_UNKNOWN
This code means that an unknown error occurred. This is the default error code to use if none of the other error codes apply.
public static final int ERR_PERMISSIONS
This code means that permission to access the target application or requested resource (such as a file) was denied.
Constructor Detail |
---|
public SendCommandException(String message)
SendCommandException
instance with the
specified message and the SendCommandException.ERR_UNKNOWN
error code.
message
- The error message.public SendCommandException(String message, int errorCode)
SendCommandException
instance with the
specified message and error code.
message
- The error message.errorCode
- The error code.Method Detail |
---|
public int getErrorCode()
SendCommandException
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal