1
2
3
4
5
6 package com.hack23.cia.web.action.common;
7
8 /***
9 * The Class ApplicationErrorAction.
10 */
11 public class ApplicationErrorAction extends AbstractAction {
12
13 /*** The Constant serialVersionUID. */
14 private static final long serialVersionUID = 1L;
15
16 /*** The error message. */
17 private final String errorMessage;
18
19 /*** The stack trace elements. */
20 private final StackTraceElement[] stackTraceElements;
21
22 /***
23 * Instantiates a new application error action.
24 *
25 * @param stackTraceElements the stack trace elements
26 * @param errorMessage the error message
27 */
28 public ApplicationErrorAction(final StackTraceElement[] stackTraceElements,final String errorMessage) {
29 super(ActionCategory.Application);
30 this.stackTraceElements = stackTraceElements;
31 this.errorMessage = errorMessage;
32 }
33
34
35 /***
36 * Gets the error message.
37 *
38 * @return the error message
39 */
40 public final String getErrorMessage() {
41 return errorMessage;
42 }
43
44 /***
45 * Gets the stack trace elements.
46 *
47 * @return the stack trace elements
48 */
49 public final StackTraceElement[] getStackTraceElements() {
50 return stackTraceElements;
51 }
52
53 }