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

com.daredayo.util.PoisonIOException Maven / Gradle / Ivy

package com.daredayo.util;

import java.io.IOException;
import java.util.function.Supplier;

import com.daredayo.util.Patient.PoisonSpecifier;

public enum PoisonIOException implements PoisonSpecifier {

	Pill1(() -> new IOException("pill1")),
	Pill2(() -> new IOException("pill2")),
	Pill3(() -> new IOException("pill3")),
	Pill4(() -> new IOException("pill4")),
	;
	
	public NameSpecifier getNameSpecifier() {
		return NameSpecifier.of(this);
	}

	public Supplier getException() {
		return exception;
	}

	private PoisonIOException(Supplier exception) {
		this.exception = exception;
	}

	public Supplier exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy