Class ErrorDetails

java.lang.Object
com.flowingcode.vaadin.addons.errorwindow.ErrorDetails

public class ErrorDetails extends Object
Encapsulates error details, including the throwable object and the cause of the error.
  • Constructor Details

    • ErrorDetails

      public ErrorDetails(Throwable throwable, String cause)
      Constructs a new ErrorDetails object with the given throwable and cause.
      Parameters:
      throwable - the throwable object that caused the error
      cause - the cause of the error
  • Method Details

    • getThrowable

      public Throwable getThrowable()
      Retrieves the throwable object that caused the error.
      Returns:
      the throwable object that caused the error
    • setThrowable

      public void setThrowable(Throwable throwable)
      Sets the throwable object that caused the error.
      Parameters:
      throwable - the throwable object that caused the error
    • getCause

      public String getCause()
      Retrieves the cause of the error.
      Returns:
      the cause of the error
    • setCause

      public void setCause(String cause)
      Sets the cause of the error.
      Parameters:
      cause - the cause of the error