View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
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  }