01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2005 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: ManagementEndpointException.java 6732 2005-05-09 21:14:38Z mwringe $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.mejb;
25:
26: /**
27: * Custom exceptions used by the web service monitoring endpoint (mejb.ear).
28: * @author Matt Wringe
29: * @author Vivek Lakshmanan
30: */
31: public class ManagementEndpointException extends Exception {
32:
33: /**
34: * The type of exception.
35: */
36: private String exceptionType;
37:
38: /**
39: * The exception message.
40: */
41: private String message;
42:
43: /**
44: * Gets the exception type
45: * @return The exception type.
46: */
47: public String getExceptionType() {
48: return exceptionType;
49: }
50:
51: /**
52: * Sets the exception type.
53: * @param exceptionType The exception type.
54: */
55: public void setExceptionType(String exceptionType) {
56: this .exceptionType = exceptionType;
57: }
58:
59: /**
60: * Gets the exception message.
61: * @return The exception message.
62: */
63: public String getMessage() {
64: return message;
65: }
66:
67: /**
68: * Sets the exception message.
69: * @param message The exception message.
70: */
71: public void setMessage(String message) {
72: this.message = message;
73: }
74:
75: }
|