net.rim.pushsdk.commons
Class UnauthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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 messagecause - the throwable to be wrapped
Copyright © 2011 Research In Motion. All Rights Reserved.