net.rim.pushsdk.commons
Class UnauthorizedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.rim.pushsdk.commons.UnauthorizedException
All Implemented Interfaces:
Serializable

public class UnauthorizedException
extends Exception

Exception thrown when the requested operation did not succeed due to an authorization failure at the PPG.

 Possible causes: 
 - Username was not specified 
 - Password was not specified 
 - HTTP POST did not correctly specify username:password as Basic Authorization header (Base64 encoded) 
 - Incorrect password 
 - Push application is no longer active 
 - Push application has expired
 

Author:
mdicesare
See Also:
Serialized Form

Constructor Summary
UnauthorizedException(String message)
          Constructs an UnauthorizedException with an error message.
UnauthorizedException(String message, Throwable cause)
          Constructs an UnauthorizedException with the given error message and wrapping a throwable.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnauthorizedException

public UnauthorizedException(String message)
Constructs an UnauthorizedException with an error message.

Parameters:
message - an error message

UnauthorizedException

public UnauthorizedException(String message,
                             Throwable cause)
Constructs an UnauthorizedException with the given error message and wrapping a throwable.

Parameters:
message - an error message
cause - the throwable to be wrapped


Copyright © 2011 Research In Motion. All Rights Reserved.