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

com.g2forge.alexandria.java.debug.Trace Maven / Gradle / Ivy

There is a newer version: 0.0.18
Show newest version
package com.g2forge.alexandria.java.debug;

import lombok.AccessLevel;
import lombok.Getter;

public class Trace {
	@Getter(AccessLevel.PROTECTED)
	protected final Throwable throwable;

	public Trace() {
		this.throwable = HDebug.isDebugEnabled() ? new Throwable("Creation point") : null;
	}

	public  T addTrace(T throwable) {
		final Throwable mine = getThrowable();
		if (mine != null) throwable.addSuppressed(mine);
		return throwable;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy