Class ErrorDetails
java.lang.Object
com.flowingcode.vaadin.addons.errorwindow.ErrorDetails
Encapsulates error details, including the throwable object and the cause of the error.
-
Constructor Summary
ConstructorsConstructorDescriptionErrorDetails(Throwable throwable, String cause) Constructs a new ErrorDetails object with the given throwable and cause. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Retrieves the cause of the error.Retrieves the throwable object that caused the error.voidSets the cause of the error.voidsetThrowable(Throwable throwable) Sets the throwable object that caused the error.
-
Constructor Details
-
ErrorDetails
Constructs a new ErrorDetails object with the given throwable and cause.- Parameters:
throwable- the throwable object that caused the errorcause- the cause of the error
-
-
Method Details
-
getThrowable
Retrieves the throwable object that caused the error.- Returns:
- the throwable object that caused the error
-
setThrowable
Sets the throwable object that caused the error.- Parameters:
throwable- the throwable object that caused the error
-
getCause
Retrieves the cause of the error.- Returns:
- the cause of the error
-
setCause
Sets the cause of the error.- Parameters:
cause- the cause of the error
-