1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 /*
24  * Created on 04.11.2003
25  *
26  * To change the template for this generated file go to
27  * Window>Preferences>Java>Code Generation>Code and Comments
28  */
29 package com.sun.star.wizards.web.status;
30 
31 import java.util.List;
32 import java.util.Vector;
33 
34 /**
35  * @author rpiterman
36  *
37  * To change the template for this generated type comment go to
38  * Window>Preferences>Java>Code Generation>Code and Comments
39  */
40 public class ErrorLog implements ErrorReporter
41 {
42 
43     private List errors = new Vector();
44 
error(Exception ex, Object obj, String s)45     public void error(Exception ex, Object obj, String s)
46     {
47         errors.add(new Err(ex, obj, s));
48     }
49 
50     public class Err
51     {
52 
53         public Exception exception;
54         public Object argument;
55         public String string;
56 
Err(Exception ex, Object arg, String s)57         public Err(Exception ex, Object arg, String s)
58         {
59             exception = ex;
60             argument = arg;
61             string = s;
62         }
63     }
64 }
65