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