diff options
author | John Cater <jcater@google.com> | 2018-07-10 08:43:04 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-10 08:44:27 -0700 |
commit | 76b6f20130f9bfd70132cbeb84799c5e21b8912e (patch) | |
tree | 26616ae7409f29c3d0b69ad8abec43b6c3e1a1c3 /src/main/java/com/google/devtools/build/lib/skyframe/ToolchainException.java | |
parent | 45f1da197a7fa8f91efca99315432d6d97a88ccd (diff) |
Remove ToolchainContextException and make exception handling more robust.
Change-Id: Iefeab0de85541b963c6cc262339e73b79f630f8b
PiperOrigin-RevId: 203952823
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/ToolchainException.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/ToolchainException.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainException.java b/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainException.java new file mode 100644 index 0000000000..cc9db65a3a --- /dev/null +++ b/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainException.java @@ -0,0 +1,30 @@ +// Copyright 2018 The Bazel Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +package com.google.devtools.build.lib.skyframe; + +/** Base class for exceptions that happen during toolchain resolution. */ +public class ToolchainException extends Exception { + + public ToolchainException(String message) { + super(message); + } + + public ToolchainException(Throwable cause) { + super(cause); + } + + public ToolchainException(String message, Throwable cause) { + super(message, cause); + } +} |