diff options
author | Colin Cross <ccross@android.com> | 2020-06-19 06:18:09 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-19 06:18:09 +0000 |
commit | 6ddc2e77d3a9e66174e0344e8f17338a511d4f03 (patch) | |
tree | 2f8cc743bd7babbb6fa85cd2b98e4e5e46c847f8 /src/main/java/com/google/escapevelocity/EvaluationException.java | |
parent | 4e70048b1a58f2f479f6d9179eecb395edb95522 (diff) | |
parent | cc05f1b8c032da2771bf110e01f36e51bbf29f2e (diff) | |
download | escapevelocity-6ddc2e77d3a9e66174e0344e8f17338a511d4f03.tar.gz |
Merge tag 'escapevelocity-0.9.1' into master am: 43799cbf40 am: 6b276f51ce am: f29fb6ed5e am: cc05f1b8c0
Original change: https://android-review.googlesource.com/c/platform/external/escapevelocity/+/1343296
Change-Id: If2c33d268d0adf811a08ef5ab12744fc4a3aebd8
Diffstat (limited to 'src/main/java/com/google/escapevelocity/EvaluationException.java')
-rw-r--r-- | src/main/java/com/google/escapevelocity/EvaluationException.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/com/google/escapevelocity/EvaluationException.java b/src/main/java/com/google/escapevelocity/EvaluationException.java new file mode 100644 index 0000000..a1f25a4 --- /dev/null +++ b/src/main/java/com/google/escapevelocity/EvaluationException.java @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2018 Google, Inc. + * + * 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.escapevelocity; + +/** + * An exception that occurred while evaluating a template, such as an undefined variable reference + * or a division by zero. + * + * @author emcmanus@google.com (Éamonn McManus) + */ +public class EvaluationException extends RuntimeException { + private static final long serialVersionUID = 1; + + EvaluationException(String message) { + super(message); + } + + EvaluationException(String message, Throwable cause) { + super(message, cause); + } +} |