Class CachedExceptionWrapper

java.lang.Object
eu.europa.esig.dss.tsl.cache.state.CachedExceptionWrapper

public class CachedExceptionWrapper extends Object
Wraps an exception for a cache record
  • Constructor Details

    • CachedExceptionWrapper

      public CachedExceptionWrapper(Exception exception)
      Default constructor
      Parameters:
      exception - Exception
  • Method Details

    • getDate

      public Date getDate()
      Gets the first occurrence date of the exception
      Returns:
      Date
    • getLastOccurrenceDate

      public Date getLastOccurrenceDate()
      Gets the last occurrence date of the exception
      Returns:
      Date
    • setLastOccurrenceDate

      public void setLastOccurrenceDate(Date lastOccurrenceDate)
      Sets the last occurrence date of the exception
      Parameters:
      lastOccurrenceDate - Date
    • getException

      public Exception getException()
      Gets the exception
      Returns:
      Exception
    • getExceptionMessage

      public String getExceptionMessage()
      Gets the exception message
      Returns:
      String
    • getStackTrace

      public String getStackTrace()
      Gets the exception stack trace
      Returns:
      String