diff options
author | 2017-11-30 08:55:49 -0800 | |
---|---|---|
committer | 2017-11-30 08:58:15 -0800 | |
commit | 39c2a36bf8f502d55addd58e9e97bf2ebb46e4b0 (patch) | |
tree | d03277d06ea07cac689e88502b81949c5b6630c7 /src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2Exception.java | |
parent | 38bd6d7e205df20bc94c8c7359cee81e500cdd16 (diff) |
Improve the error messaging by suppressing stack traces for expected errors.
RELNOTES: None
PiperOrigin-RevId: 177460834
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2Exception.java')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2Exception.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2Exception.java b/src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2Exception.java new file mode 100644 index 0000000000..4781698e8c --- /dev/null +++ b/src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2Exception.java @@ -0,0 +1,27 @@ +// 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. +// Copyright 2017 The Bazel Authors. All rights reserved. + +package com.google.devtools.build.android.aapt2; + +/** Represents an error found during an aapt2 execution pass. */ +public abstract class Aapt2Exception extends RuntimeException { + protected Aapt2Exception(Throwable e) { + super(e); + } + + public Aapt2Exception() { + super(); + } +} |