io.github.sashirestela.openai.SimpleUncheckedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-openai Show documentation
Show all versions of simple-openai Show documentation
A Java library to use the OpenAI API in the simplest possible way.
package io.github.sashirestela.openai;
import java.text.MessageFormat;
import java.util.Arrays;
public class SimpleUncheckedException extends RuntimeException {
public SimpleUncheckedException(String message) {
super(message);
}
public SimpleUncheckedException(String message, Object... parameters) {
super(MessageFormat.format(message, Arrays.copyOfRange(parameters, 0, parameters.length - 1)),
(Throwable) parameters[parameters.length - 1]);
}
}