This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch v4
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/v4 by this push:
     new de13bb9bdab CAUSEWAY-2297: javadoc
de13bb9bdab is described below

commit de13bb9bdab64ca1b86ad79f0da64a044e007398
Author: Andi Huber <[email protected]>
AuthorDate: Tue Jul 29 07:44:16 2025 +0200

    CAUSEWAY-2297: javadoc
---
 .../viewer/wicket/ui/errors/ExceptionModel.java       | 19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)

diff --git 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/errors/ExceptionModel.java
 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/errors/ExceptionModel.java
index e100cc7e01b..1e521f02189 100644
--- 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/errors/ExceptionModel.java
+++ 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/errors/ExceptionModel.java
@@ -25,6 +25,8 @@
 
 import org.apache.causeway.applib.exceptions.UnrecoverableException;
 import org.apache.causeway.applib.services.error.ErrorDetails;
+import org.apache.causeway.applib.services.error.ErrorReportingService;
+import org.apache.causeway.applib.services.error.Ticket;
 import org.apache.causeway.applib.services.exceprecog.Recognition;
 import org.apache.causeway.commons.internal.base._Casts;
 import org.apache.causeway.commons.internal.collections._Lists;
@@ -34,6 +36,9 @@
 
 /**
  * Three cases: authorization exception, else recognized, else or not 
recognized.
+ *
+ * <p> Supports a {@link ErrorReportingService} if configured, that optionally 
may return a {@link Ticket}
+ * to represent the fact that the error has been recorded.
  */
 public record ExceptionModel(
     ExceptionType exceptionType,
@@ -90,20 +95,6 @@ public static ExceptionModel create(
         return new ExceptionModel(exceptionType, mainMessage, 
asStackTrace(ex), asStackTraces(ex));
     }
 
-
-//    private Ticket ticket;
-//    public Optional<Ticket> getTicket() {
-//        return Optional.ofNullable(ticket);
-//    }
-//
-//    /**
-//     * Optionally called if an {@link ErrorReportingService} has been 
configured and returns a <tt>non-null</tt> ticket
-//     * to represent the fact that the error has been recorded.
-//     */
-//    public void setTicket(final Ticket ticket) {
-//        this.ticket = ticket;
-//    }
-
     public boolean isRecognized() {
         return exceptionType==ExceptionType.RECOGNIZED;
     }

Reply via email to