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

toxgene.core.ToXgeneErrorException Maven / Gradle / Ivy

/**
 * Implements fatal exceptions during a session.
 *
 * @author Denilson Barbosa
 * @version 0.1
 */

package toxgene.core;

import java.lang.RuntimeException;

public class ToXgeneErrorException extends RuntimeException{
	private String message;
	
	public ToXgeneErrorException(String s){
		super();
		message = s;
	}
	
	public ToXgeneErrorException(String s, Exception e) {
		super(s,e);
		message = s;
	}

	public ToXgeneErrorException(String s, int t){
		super();
		if (t!=0){
			message = s+"\n***** LOCATION: line "+t;
		}
		else{
			message = s;
		}
	}

	public ToXgeneErrorException(String s, String t){
		super();
		if (t!=null){
			message = s+"\n***** LOCATION: "+t;
		}
		else{
			message = s;
		}
	}

	public ToXgeneErrorException(){
		super();
		message = "";
	}

	public String getMessage(){
		return message;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy