# 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 Summary

  Constructors
  Constructor
  Description
  `PushError(String code, String message, boolean retryable)`
  Creates an error.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getCode()`
  Returns the stable machine-readable error code.
  `String`
  `getMessage()`
  Returns the diagnostic error text.
  `boolean`
  `isRetryable()`
  Indicates whether retrying later may succeed.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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