javapns.notification.exceptions
Class PayloadMaxSizeProbablyExceededException

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

public class PayloadMaxSizeProbablyExceededException
extends JSONException

Thrown when a payload is expected to exceed the maximum size allowed after adding a given property. Invoke payload.setPayloadSizeEstimatedWhenAdding(false) to disable this automatic checking.

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 org.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
clone, equals, finalize, 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 -


Copyright © 2013. All Rights Reserved.