com.yandex.ydb.examples.basic_example.exceptions.NonRetriableErrorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-examples Show documentation
Show all versions of ydb-sdk-examples Show documentation
Examples of usage Java SDK for Yandex Database (YDB)
package com.yandex.ydb.examples.basic_example.exceptions;
import java.util.Arrays;
import com.yandex.ydb.core.Status;
/**
* @author Sergey Polovko
*/
public class NonRetriableErrorException extends RuntimeException {
public NonRetriableErrorException(Status status) {
super("code: " + status.getCode() + ", issues: " + Arrays.toString(status.getIssues()));
}
}