org.ioc.commons.integration.dataaccess.dao.ServerFailure 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;
/**
* It has info for a server failure occurred.
*
* @author Jesús Lunar Pérez
*
*/
public class ServerFailure {
private final String message;
private final String stackTraceString;
private final String exceptionType;
private final boolean fatal;
public ServerFailure(String message, String stackTraceString, String exceptionType, boolean fatal) {
this.message = message;
this.stackTraceString = stackTraceString;
this.exceptionType = exceptionType;
this.fatal = fatal;
}
public String getMessage() {
return message;
}
public String getStackTraceString() {
return stackTraceString;
}
public String getExceptionType() {
return exceptionType;
}
public boolean isFatal() {
return fatal;
}
}