01: /**
02: * $RCSfile$
03: * $Revision: $
04: * $Date: $
05: *
06: * Copyright (C) 2007 Jive Software. All rights reserved.
07: *
08: * This software is published under the terms of the GNU Public License (GPL),
09: * a copy of which is included in this distribution.
10: */package org.jivesoftware.openfire.sip.tester.comm;
11:
12: /**
13: * Title: SIP Register Tester
14: * Description:JAIN-SIP Test application
15: *
16: * @author Thiago Rocha Camargo (thiago@jivesoftware.com)
17: */
18:
19: public class CommunicationsException extends Exception {
20: /**
21: */
22: private boolean isFatal = false;
23:
24: public CommunicationsException() {
25: this ("CommunicationsException");
26: }
27:
28: public CommunicationsException(String message) {
29: this (message, null);
30: }
31:
32: public CommunicationsException(String message, Throwable cause) {
33: this (message, cause, false);
34: }
35:
36: public CommunicationsException(String message, Throwable cause,
37: boolean isFatal) {
38: super (message, cause);
39: setFatal(isFatal);
40: }
41:
42: // ------------------ is fatal
43:
44: /**
45: * @return
46: * @uml.property name="isFatal"
47: */
48: public boolean isFatal() {
49: return isFatal;
50: }
51:
52: /**
53: * @param isFatal The isFatal to set.
54: * @uml.property name="isFatal"
55: */
56: public void setFatal(boolean isFatal) {
57: this.isFatal = isFatal;
58: }
59: }
|