1
2
3
4
5
6 package com.hack23.cia.model.application.impl.common;
7
8 import java.util.Date;
9
10 import javax.persistence.DiscriminatorValue;
11 import javax.persistence.Entity;
12 import javax.persistence.Lob;
13
14 /***
15 * The Class ApplicationErrorActionEvent.
16 */
17 @Entity
18 @DiscriminatorValue("ApplicationErrorActionEvent")
19 public class ApplicationErrorActionEvent extends AbstractActionEvent {
20
21 /*** The Constant serialVersionUID. */
22 private static final long serialVersionUID = 1L;
23
24 /*** The error message. */
25 private String errorMessage;
26
27 /*** The stack trace. */
28 private String stackTrace;
29
30 /***
31 * Instantiates a new application error action event.
32 */
33 public ApplicationErrorActionEvent() {
34 }
35
36 /***
37 * Instantiates a new application error action event.
38 *
39 * @param createdDate the created date
40 * @param userSession the user session
41 * @param stackTrace the stack trace
42 * @param errorMessage the error message
43 */
44 public ApplicationErrorActionEvent(final Date createdDate, final UserSession userSession, final String stackTrace,final String errorMessage) {
45 super(createdDate, userSession);
46 this.stackTrace = stackTrace;
47 this.errorMessage = errorMessage;
48 }
49
50 /***
51 * Gets the error message.
52 *
53 * @return the error message
54 */
55 public String getErrorMessage() {
56 return errorMessage;
57 }
58
59 /***
60 * Gets the stack trace.
61 *
62 * @return the stack trace
63 */
64 @Lob
65 public String getStackTrace() {
66 return stackTrace;
67 }
68
69 /***
70 * Sets the error message.
71 *
72 * @param errorMessage the new error message
73 */
74 public void setErrorMessage(final String errorMessage) {
75 this.errorMessage = errorMessage;
76 }
77
78 /***
79 * Sets the stack trace.
80 *
81 * @param stackTrace the new stack trace
82 */
83 public void setStackTrace(final String stackTrace) {
84 this.stackTrace = stackTrace;
85 }
86 }