blob: 6283874b249603d0af5ac716b72e5b71d20930d1 [file] [log] [blame]
Damien Martin-Guillerezf88f4d82015-09-25 13:56:55 +00001// Copyright 2014 The Bazel Authors. All rights reserved.
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01002//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package com.google.devtools.build.lib.packages;
16
Kristina Chodorow73fa2032015-08-28 17:57:46 +000017import com.google.devtools.build.lib.cmdline.PackageIdentifier;
Googler74178a52020-06-29 17:42:47 -070018import com.google.devtools.build.lib.util.DetailedExitCode;
Michajlo Matijkiwf9b89b52015-11-16 18:40:15 +000019import java.io.IOException;
20
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010021/**
22 * Exception indicating an attempt to access a package which is not found or
23 * does not exist.
24 */
25public class BuildFileNotFoundException extends NoSuchPackageException {
26
Kristina Chodorowe121dd92015-06-17 14:24:35 +000027 public BuildFileNotFoundException(PackageIdentifier packageIdentifier, String message) {
28 super(packageIdentifier, message);
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010029 }
30
Kristina Chodorowe121dd92015-06-17 14:24:35 +000031 public BuildFileNotFoundException(PackageIdentifier packageIdentifier, String message,
Michajlo Matijkiwf9b89b52015-11-16 18:40:15 +000032 IOException cause) {
Kristina Chodorowe121dd92015-06-17 14:24:35 +000033 super(packageIdentifier, message, cause);
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010034 }
Googler74178a52020-06-29 17:42:47 -070035
36 public BuildFileNotFoundException(
37 PackageIdentifier packageIdentifier, String message, DetailedExitCode detailedExitCode) {
38 super(packageIdentifier, message, detailedExitCode);
39 }
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010040}