Class DataExpiredException

All Implemented Interfaces:
Serializable

public class DataExpiredException extends DataSealerException
Indicates the sealed data has expired.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      serialVersionUID.
      See Also:
    • expiration

      @Nullable private final Instant expiration
      Expiration.
  • Constructor Details

    • DataExpiredException

      public DataExpiredException()
      Constructor.
    • DataExpiredException

      public DataExpiredException(@Nullable String message)
      Constructor.
      Parameters:
      message - exception message
    • DataExpiredException

      public DataExpiredException(@Nullable Exception wrappedException)
      Constructor.
      Parameters:
      wrappedException - exception to be wrapped by this one
    • DataExpiredException

      public DataExpiredException(@Nullable String message, @Nullable Exception wrappedException)
      Constructor.
      Parameters:
      message - exception message
      wrappedException - exception to be wrapped by this one
    • DataExpiredException

      public DataExpiredException(@Nullable Instant exp)
      Constructor .
      Parameters:
      exp - data expiration
      Since:
      9.3.0
    • DataExpiredException

      public DataExpiredException(@Nullable String message, @Nullable Instant exp)
      Constructor.
      Parameters:
      message - exception message
      exp - data expiration
      Since:
      9.3.0
    • DataExpiredException

      public DataExpiredException(@Nullable Exception wrappedException, @Nullable Instant exp)
      Constructor.
      Parameters:
      wrappedException - exception to be wrapped by this one
      exp - data expiration
      Since:
      9.3.0
    • DataExpiredException

      public DataExpiredException(@Nullable String message, @Nullable Exception wrappedException, @Nullable Instant exp)
      Constructor.
      Parameters:
      message - exception message
      wrappedException - exception to be wrapped by this one
      exp - data expiration
      Since:
      9.3.0
  • Method Details

    • getExpiration

      @Nullable public Instant getExpiration()
      Gets data expiration if known.
      Returns:
      data expiration, or null