![JAR search and dependency download from the Maven repository](/logo.png)
org.ioc.commons.integration.dataaccess.dao.ServerFailureException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ioc-commons Show documentation
Show all versions of ioc-commons Show documentation
This project defines a set of useful java interfaces for helping you in the definition of the structure of your developments in Java-projects which are designed using a Inversion-Of-Control (IOC) pattern. Useful for MVP-Pattern designs in applications coded on GWT, SWT, Android, etc.
package org.ioc.commons.integration.dataaccess.dao;
import org.ioc.commons.utils.Format;
public class ServerFailureException extends Exception {
/**
* Serial number.
*/
private static final long serialVersionUID = 1982412893375300750L;
private ServerFailure serverFailure;
public ServerFailureException(ServerFailure serverFailure) {
super(Format.substitute("{0}{1}{2} Fatal: {3}",
(serverFailure.getExceptionType() != null ? serverFailure.getExceptionType() + ": " : ""),
(serverFailure.getMessage() != null ? serverFailure.getMessage() : ""),
(serverFailure.getStackTraceString() != null ? serverFailure.getStackTraceString() : ""),
serverFailure.isFatal()));
this.serverFailure = serverFailure;
}
public ServerFailure getServerFailure() {
return serverFailure;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy