net.rim.blackberry.api.sendmenu
Class SendCommandException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.rim.blackberry.api.sendmenu.SendCommandException

public class SendCommandException
extends Exception

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.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0

Field Summary
Category: Signed static int ERR_PERMISSIONS
          An error code meaning that the application is not allowed to send the data.
Category: Signed static int ERR_UNKNOWN
          An error code meaning an unknown error.
 
Constructor Summary
Category: Signed SendCommandException(String message)
          Constructs a new SendCommandException instance with the specified message and the SendCommandException.ERR_UNKNOWN error code.
Category: Signed SendCommandException(String message, int errorCode)
          Constructs a new SendCommandException instance with the specified message and error code.
 
Method Summary
Category: Signed  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

ERR_UNKNOWN

public static final int ERR_UNKNOWN
An error code meaning an unknown error.

This code means that an unknown error occurred. This is the default error code to use if none of the other error codes apply.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0

ERR_PERMISSIONS

public static final int ERR_PERMISSIONS
An error code meaning that the application is not allowed to send the data.

This code means that permission to access the target application or requested resource (such as a file) was denied.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0


Constructor Detail

SendCommandException

public SendCommandException(String message)
Constructs a new SendCommandException instance with the specified message and the SendCommandException.ERR_UNKNOWN error code.

Parameters:
message - The error message.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0

SendCommandException

public SendCommandException(String message,
                            int errorCode)
Constructs a new SendCommandException instance with the specified message and error code.

Parameters:
message - The error message.
errorCode - The error code.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0


Method Detail

getErrorCode

public int getErrorCode()
Returns the error code of this SendCommandException.

Returns:
The error code.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0





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