Class PushError

java.lang.Object
com.codename1.push.PushError

public final class PushError extends Object

Describes a push registration or envelope-processing error.

The code is intended for application decisions and logging. The message is diagnostic text and may vary. A retryable error may be attempted again later with backoff; it is not a promise that an immediate retry will work.

  • Constructor Details

    • PushError

      public PushError(String code, String message, boolean retryable)
      Creates an error.
      Parameters:
      code - stable machine-readable code
      message - diagnostic message
      retryable - whether retrying later may succeed
  • Method Details

    • getCode

      public String getCode()
      Returns the stable machine-readable error code.
      Returns:
      the error code
    • getMessage

      public String getMessage()
      Returns the diagnostic error text.
      Returns:
      the diagnostic message
    • isRetryable

      public boolean isRetryable()
      Indicates whether retrying later may succeed.
      Returns:
      true for a potentially transient failure