Back to project page libgdx-chat-example.
The source code is released under:
Apache License
If you think the Android project libgdx-chat-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.stofkat.chat.common.exceptions; /*w w w . j av a2 s .c o m*/ import java.io.Serializable; /** * An abstract superclass for exceptions that can be thrown by the Dispatch * system. * * @author David Peterson */ public abstract class DispatchException extends Exception implements Serializable { private static final long serialVersionUID = 1L; private String causeClassname; protected DispatchException() { } public DispatchException( String message ) { super( message ); } public DispatchException( Throwable cause ) { super( cause.getMessage() ); this.causeClassname = cause.getClass().getName(); } public DispatchException( String message, Throwable cause ) { super( message + " (" + cause.getMessage() + ")" ); this.causeClassname = cause.getClass().getName(); } public String getCauseClassname() { return causeClassname; } @Override public String toString() { return super.toString() + ( causeClassname != null ? " [cause: " + causeClassname + "]" : "" ); } }