public class NoSuchBuildTargetException extends BuildTargetException
| Constructor and Description |
|---|
NoSuchBuildTargetException(BuildTarget target) |
NoSuchBuildTargetException(UnconfiguredBuildTarget target) |
| Modifier and Type | Method and Description |
|---|---|
static NoSuchBuildTargetException |
createForMissingBuildRule(UnconfiguredBuildTarget buildTarget,
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> similarTargets,
int totalTargets,
java.util.function.Function<Path,OptionalLong> fileSizeFetcher,
Path buildFilePath) |
String |
getHumanReadableErrorMessage() |
createForBuildFileParseError, createForUnknownParseErrorgetDependencyStackaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NoSuchBuildTargetException(BuildTarget target)
public NoSuchBuildTargetException(UnconfiguredBuildTarget target)
public static NoSuchBuildTargetException createForMissingBuildRule(UnconfiguredBuildTarget buildTarget, com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> similarTargets, int totalTargets, java.util.function.Function<Path,OptionalLong> fileSizeFetcher, Path buildFilePath)
buildTarget - the failing BuildTargetsimilarTargets - targets that are similar to buildTarget to suggest to userstotalTargets - the total number of targets that were found in the build filefileSizeFetcher - a function that takes a path and returns its filesize, or Optional.empty() if the file couldn't be readbuildFilePath - the absolute path to the build filepublic String getHumanReadableErrorMessage()
getHumanReadableErrorMessage in interface ExceptionWithHumanReadableMessagegetHumanReadableErrorMessage in class BuildFileParseException