net.rim.device.api.wlan.hotspot
Class HotspotException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.rim.device.api.wlan.hotspot.HotspotException

public final class HotspotException
extends RuntimeException

A runtime exception thrown during a hotspot-related operation.

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 5.0.0

Field Summary
Category: Signed static int ERROR_CREDENTIALS_STORAGE_UNAVAILABLE
          Error code used to indicate that credentials storage cannot be accessed.
Category: Signed static int ERROR_DATABASE_UNAVAILABLE
          Error code used to indicate that a client's database is unavailable.
Category: Signed static int ERROR_HOTSPOT_CLIENT_DISABLED
          Error code used to indicate that the hotspot client is disabled.
Category: Signed static int ERROR_UNDEFINED
          Error code used to indicate an undefined error.
 
Constructor Summary
Category: Signed HotspotException(int errorCode, String message)
          Creates a new HotspotException with the provided error code and error message.
 
Method Summary
Category: Signed  int getErrorCode()
          Retrieves this exception's error code.
 
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

ERROR_UNDEFINED

public static final int ERROR_UNDEFINED
Error code used to indicate an undefined error.

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 5.0.0

ERROR_DATABASE_UNAVAILABLE

public static final int ERROR_DATABASE_UNAVAILABLE
Error code used to indicate that a client's database is unavailable. Thrown from HotspotClient.getSupportedNetworks.

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 5.0.0

ERROR_CREDENTIALS_STORAGE_UNAVAILABLE

public static final int ERROR_CREDENTIALS_STORAGE_UNAVAILABLE
Error code used to indicate that credentials storage cannot be accessed. Thrown from HotspotCredentialsAgent.

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 5.0.0

ERROR_HOTSPOT_CLIENT_DISABLED

public static final int ERROR_HOTSPOT_CLIENT_DISABLED
Error code used to indicate that the hotspot client is disabled. Thrown from HotspotClient.getSupportedNetworks.

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 5.0.0


Constructor Detail

HotspotException

public HotspotException(int errorCode,
                        String message)
Creates a new HotspotException with the provided error code and error message.

Parameters:
errorCode - one of the constants in this class.
message - 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 5.0.0


Method Detail

getErrorCode

public int getErrorCode()
Retrieves this exception's error code.

Returns:
the error code of this exception.
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 5.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