Damien Martin-Guillerez | f88f4d8 | 2015-09-25 13:56:55 +0000 | [diff] [blame] | 1 | // Copyright 2014 The Bazel Authors. All rights reserved. |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 2 | // |
| 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 | |
| 15 | package com.google.devtools.build.lib.packages; |
| 16 | |
Kristina Chodorow | 73fa203 | 2015-08-28 17:57:46 +0000 | [diff] [blame] | 17 | import com.google.devtools.build.lib.cmdline.PackageIdentifier; |
Googler | 74178a5 | 2020-06-29 17:42:47 -0700 | [diff] [blame] | 18 | import com.google.devtools.build.lib.util.DetailedExitCode; |
Michajlo Matijkiw | f9b89b5 | 2015-11-16 18:40:15 +0000 | [diff] [blame] | 19 | import java.io.IOException; |
| 20 | |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 21 | /** |
| 22 | * Exception indicating an attempt to access a package which is not found or |
| 23 | * does not exist. |
| 24 | */ |
| 25 | public class BuildFileNotFoundException extends NoSuchPackageException { |
| 26 | |
Kristina Chodorow | e121dd9 | 2015-06-17 14:24:35 +0000 | [diff] [blame] | 27 | public BuildFileNotFoundException(PackageIdentifier packageIdentifier, String message) { |
| 28 | super(packageIdentifier, message); |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 29 | } |
| 30 | |
Kristina Chodorow | e121dd9 | 2015-06-17 14:24:35 +0000 | [diff] [blame] | 31 | public BuildFileNotFoundException(PackageIdentifier packageIdentifier, String message, |
Michajlo Matijkiw | f9b89b5 | 2015-11-16 18:40:15 +0000 | [diff] [blame] | 32 | IOException cause) { |
Kristina Chodorow | e121dd9 | 2015-06-17 14:24:35 +0000 | [diff] [blame] | 33 | super(packageIdentifier, message, cause); |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 34 | } |
Googler | 74178a5 | 2020-06-29 17:42:47 -0700 | [diff] [blame] | 35 | |
| 36 | public BuildFileNotFoundException( |
| 37 | PackageIdentifier packageIdentifier, String message, DetailedExitCode detailedExitCode) { |
| 38 | super(packageIdentifier, message, detailedExitCode); |
| 39 | } |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 40 | } |