com.databasesandlife.util.gwtsafe.ConfigurationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-common Show documentation
Show all versions of java-common Show documentation
Utility classes developed at Adrian Smith Software (A.S.S.)
The newest version!
package com.databasesandlife.util.gwtsafe;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* Indicates that in some way a configuration file loaded by DomParser is incorrect.
*
* @author This source is copyright Adrian Smith and licensed under the LGPL 3.
* @see Project on GitHub
*/
public class ConfigurationException extends Exception implements IsSerializable {
public ConfigurationException() { }
public ConfigurationException(String msg) {
super(msg);
}
public ConfigurationException(String prefix, Throwable cause) {
super(prefixExceptionMessage(prefix, cause), cause);
}
public ConfigurationException(Throwable cause) {
this(null, cause);
}
public static String prefixExceptionMessage(String prefix, Throwable cause) {
return (prefix == null ? "" : (prefix + ": ")) + ((cause.getMessage() == null) ? "Internal error" : cause.getMessage());
}
}