KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > vfs > ErrorEvent


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * See the License for the specific language governing rights and
10  * limitations under the License.
11  *
12  * The Initial Developer of the Original Code is Simulacra Media Ltd.
13  * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14  *
15  * All Rights Reserved.
16  *
17  * Contributor(s):
18  */

19 package org.openharmonise.vfs;
20
21 /**
22  * This wraps the data for an error event.
23  *
24  * @author Matthew Large
25  * @version $Revision: 1.1 $
26  *
27  */

28 public class ErrorEvent {
29
30     /**
31      * Error event message.
32      */

33     private String JavaDoc m_sMessage = null;
34     
35     /**
36      * Error event details.
37      */

38     private String JavaDoc m_sDetails = null;
39
40     /**
41      *
42      * @param sMessage General message to attatch to the error event
43      * @param sDetails Details about the error
44      */

45     public ErrorEvent(String JavaDoc sMessage, String JavaDoc sDetails) {
46         super();
47         this.m_sMessage = sMessage;
48         this.m_sDetails = sDetails;
49     }
50     
51     /**
52      * Returns the error event message
53      *
54      * @return Error event message
55      */

56     public String JavaDoc getMessage() {
57         return this.m_sMessage;
58     }
59     
60     /**
61      * Returns the error event details
62      *
63      * @return Error event details
64      */

65     public String JavaDoc getDetails() {
66         return this.m_sDetails;
67     }
68     
69     public String JavaDoc toString() {
70         return "Message [" + m_sMessage + "] Details[" + m_sDetails + "]";
71     }
72 }
73
Popular Tags