Commit 69f2cb7c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Initial version. JM-264


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1276 b35dd754-fafc-0310-a699-88a17e54d16e
parent 645ec22e
/**
* $RCSfile$
* $Revision$
* $Date$
*
* Copyright (C) 2004 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.messenger.muc;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* Exception used for representing that the MultiUserChat service is not available at the moment.
* There are many reasons why a ServiceUnavailableException could occur such as: a user is trying
* to join a room that has reached the max number of occupants.
*
* @author Gaston Dombiak
*/
public class ServiceUnavailableException extends Exception {
private static final long serialVersionUID = 1L;
private Throwable nestedThrowable = null;
public ServiceUnavailableException() {
super();
}
public ServiceUnavailableException(String msg) {
super(msg);
}
public ServiceUnavailableException(Throwable nestedThrowable) {
this.nestedThrowable = nestedThrowable;
}
public ServiceUnavailableException(String msg, Throwable nestedThrowable) {
super(msg);
this.nestedThrowable = nestedThrowable;
}
public void printStackTrace() {
super.printStackTrace();
if (nestedThrowable != null) {
nestedThrowable.printStackTrace();
}
}
public void printStackTrace(PrintStream ps) {
super.printStackTrace(ps);
if (nestedThrowable != null) {
nestedThrowable.printStackTrace(ps);
}
}
public void printStackTrace(PrintWriter pw) {
super.printStackTrace(pw);
if (nestedThrowable != null) {
nestedThrowable.printStackTrace(pw);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment