View Javadoc

1   /*
2    * Copyright 2000-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.portals.bridges.struts;
17  
18  import java.io.Serializable;
19  
20  /***
21   * StrutsPortletErrorContext
22   * 
23   * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
24   * @version $Id: StrutsPortletErrorContext.java 187139 2004-07-30 00:16:41 +0200 (Fri, 30 Jul 2004) ate $
25   */
26  public class StrutsPortletErrorContext implements Serializable
27  {
28      private int errorCode;
29      private String errorMessage;
30      private Exception error;
31      public Exception getError()
32      {
33          return error;
34      }
35      public void setError(Exception error)
36      {
37          this.error = error;
38      }
39      public int getErrorCode()
40      {
41          return errorCode;
42      }
43      public void setErrorCode(int errorCode)
44      {
45          this.errorCode = errorCode;
46      }
47      public String getErrorMessage()
48      {
49          return errorMessage;
50      }
51      public void setErrorMessage(String errorMessage)
52      {
53          this.errorMessage = errorMessage;
54      }
55  }