org.pantsbuild.tools.junit.impl.SpecException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-runner Show documentation
Show all versions of junit-runner Show documentation
A command line tool for running junit tests that provides functionality above and beyond
that provided by org.junit.runner.JUnitCore.
// Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package org.pantsbuild.tools.junit.impl;
class SpecException extends RuntimeException {
SpecException(String spec, String message) {
super(formatMessage(spec, message));
}
SpecException(String spec, String message, Throwable t) {
super(formatMessage(spec, message), t);
}
private static String formatMessage(String spec, String message) {
return String.format("FATAL: Error parsing spec '%s': %s", spec, message);
}
}