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

io.activej.serializer.stream.EOSException Maven / Gradle / Ivy

package io.activej.serializer.stream;

import io.activej.common.ApplicationSettings;

import java.io.IOException;

public final class EOSException extends IOException {
	public static final boolean WITH_STACK_TRACE = ApplicationSettings.getBoolean(EOSException.class, "withStackTrace", false);

	public EOSException() {
		super("Unexpected end of stream");
	}

	public EOSException(String message) {
		super(message);
	}

	@Override
	public Throwable fillInStackTrace() {
		return WITH_STACK_TRACE ? fillInStackTrace() : this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy