javapns.notification.exceptions
Class PayloadMaxSizeProbablyExceededException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javapns.json.JSONException
              extended by javapns.notification.exceptions.PayloadMaxSizeProbablyExceededException
All Implemented Interfaces:
Serializable

public class PayloadMaxSizeProbablyExceededException
extends JSONException

Specific exception indicating that a payload would probably exceed the maximum size allowed if the current property addition were to complete, but thrown only if you explicitely invoked payload.setPayloadSizeEstimatedWhenAdding(true) before calling that add___ method. Since this feature is not enabled by default, you do not need to worry about this exception unless you decide to enable it manually. Further more, you do not need to catch this exception specifically, as catching its parent JSONException will catch a variety of payload construction-related exeptions including this one.

Author:
Sylvain Pedneault
See Also:
Serialized Form

Constructor Summary
PayloadMaxSizeProbablyExceededException()
          Default constructor
PayloadMaxSizeProbablyExceededException(int maxSize)
           
PayloadMaxSizeProbablyExceededException(int maxSize, int estimatedSize)
           
PayloadMaxSizeProbablyExceededException(String message)
          Constructor with custom message
 
Method Summary
 
Methods inherited from class javapns.json.JSONException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PayloadMaxSizeProbablyExceededException

public PayloadMaxSizeProbablyExceededException()
Default constructor


PayloadMaxSizeProbablyExceededException

public PayloadMaxSizeProbablyExceededException(int maxSize)

PayloadMaxSizeProbablyExceededException

public PayloadMaxSizeProbablyExceededException(int maxSize,
                                               int estimatedSize)

PayloadMaxSizeProbablyExceededException

public PayloadMaxSizeProbablyExceededException(String message)
Constructor with custom message

Parameters:
message -