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

io.qameta.allure.ReadError Maven / Gradle / Ivy

There is a newer version: 2.29.1
Show newest version
package io.qameta.allure;

import java.util.Objects;

/**
 * @author charlie (Dmitry Baev).
 * @deprecated scheduled to remove in 3.0
 */
@Deprecated
public class ReadError {

    private final String message;

    private final Throwable exception;

    public ReadError(final Throwable exception, final String message, final Object... args) {
        this.message = Objects.nonNull(args) ? String.format(message, args) : message;
        this.exception = exception;
    }

    public String getMessage() {
        return message;
    }

    public Throwable getException() {
        return exception;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy