diff options
author | 2017-07-25 00:04:53 +0200 | |
---|---|---|
committer | 2017-07-25 13:17:37 +0200 | |
commit | 150858b40e98ee969b74a10702de06f974b757be (patch) | |
tree | 32e579108ef0be12936ea0649cffda745b132e79 /src/main/java/com/google/devtools/build/lib/skyframe/NotSerializableRuntimeException.java | |
parent | 7ecf8ea7830b5b6b62fe041f48fe511f36a8f831 (diff) |
Add hook to process SkyframeExecutor in tests. Also add sentinel exception to indicate unserializability, improve error message in Path when serialization fails, and add some test-only methods to SkyframeExecutor and PackageFactory.
PiperOrigin-RevId: 162993806
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/NotSerializableRuntimeException.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/NotSerializableRuntimeException.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/NotSerializableRuntimeException.java b/src/main/java/com/google/devtools/build/lib/skyframe/NotSerializableRuntimeException.java new file mode 100644 index 0000000000..c54bd45dd7 --- /dev/null +++ b/src/main/java/com/google/devtools/build/lib/skyframe/NotSerializableRuntimeException.java @@ -0,0 +1,24 @@ +// Copyright 2017 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; + +import java.io.Serializable; + +/** + * An exception that can be thrown by {@code writeObject} and {@code readObject} implementations of + * {@link Serializable} objects to indicate that they cannot actually be serialized. Should be used + * only as a shim: in the long run, all {@link Serializable} objects should actually be + * serializable. + */ +public class NotSerializableRuntimeException extends RuntimeException {} |