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

com.tngtech.archunit.junit.ArchTestInitializationException Maven / Gradle / Ivy

package com.tngtech.archunit.junit;

import com.tngtech.archunit.base.Function;

class ArchTestInitializationException extends RuntimeException {
    private ArchTestInitializationException(String message, Object... args) {
        super(String.format(message, args));
    }

    ArchTestInitializationException(Throwable cause) {
        super(cause);
    }

    ArchTestInitializationException(Throwable cause, String message, Object... args) {
        super(String.format(message, args), cause);
    }

    static void check(boolean condition, String message, Object... args) {
        if (!condition) {
            throw new ArchTestInitializationException(message, args);
        }
    }

    static final Function WRAP_CAUSE = new Function() {
        @Override
        public ArchTestInitializationException apply(Throwable throwable) {
            return new ArchTestInitializationException(throwable);
        }
    };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy