All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ioc.commons.integration.dataaccess.dao.ServerFailureException Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.2.1
Show newest version
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