com.createsend.util.exceptions
Class UnauthorisedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.createsend.util.exceptions.CreateSendException
              extended by com.createsend.util.exceptions.CreateSendHttpException
                  extended by com.createsend.util.exceptions.UnauthorisedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExpiredOAuthTokenException

public class UnauthorisedException
extends CreateSendHttpException

An exception raised when the API responds with a 401 Unauthorized

See Also:
Serialized Form

Constructor Summary
UnauthorisedException(int apiErrorCode, java.lang.String apiErrorMessage)
           
 
Method Summary
 
Methods inherited from class com.createsend.util.exceptions.CreateSendHttpException
getApiErrorCode, getApiErrorMessage, getHttpStatusCode
 
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

UnauthorisedException

public UnauthorisedException(int apiErrorCode,
                             java.lang.String apiErrorMessage)