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

io.odysz.transact.x.TransException Maven / Gradle / Ivy

package io.odysz.transact.x;

import io.odysz.common.LangExt;

public class TransException extends Exception {
	private static final long serialVersionUID = 1L;
	
	public TransException(String format, Object... args) {
		super(LangExt.isblank(format) ? null
			: args != null && args.length > 0 ?
					String.format(format, args) : format);
	}
	
	@Override
	public String getMessage() {
		String s = super.getMessage();
		return LangExt.isblank(s) ? super.getCause().getMessage() : s;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy