Repository: olingo-odata4 Updated Branches: refs/heads/master 40d82fcc2 -> 31c6716fc
[OLINGO-584] Minor exceptions clean up Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/31c6716f Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/31c6716f Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/31c6716f Branch: refs/heads/master Commit: 31c6716fcbd2bce1b4380c69bcdeaa80d8fae7de Parents: 40d82fc Author: Michael Bolz <[email protected]> Authored: Wed Mar 11 06:12:37 2015 +0100 Committer: Michael Bolz <[email protected]> Committed: Wed Mar 11 06:12:37 2015 +0100 ---------------------------------------------------------------------- .../uri/queryoption/ExceptionVisitExpand.java | 25 -------------------- .../expression/ExpressionVisitException.java | 15 +++++++++++- 2 files changed, 14 insertions(+), 26 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/31c6716f/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/ExceptionVisitExpand.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/ExceptionVisitExpand.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/ExceptionVisitExpand.java deleted file mode 100644 index cd6f452..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/ExceptionVisitExpand.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 org.apache.olingo.server.api.uri.queryoption; - -public class ExceptionVisitExpand extends Exception { - - private static final long serialVersionUID = 1L; - -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/31c6716f/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/expression/ExpressionVisitException.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/expression/ExpressionVisitException.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/expression/ExpressionVisitException.java index 01098df..f494028 100644 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/expression/ExpressionVisitException.java +++ b/lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/expression/ExpressionVisitException.java @@ -18,11 +18,24 @@ */ package org.apache.olingo.server.api.uri.queryoption.expression; +import org.apache.olingo.commons.api.ODataException; + /** * Exception class used by the {@link ExpressionVisitor} to throw exceptions while traversing the expression tree */ -public class ExpressionVisitException extends Exception { +public class ExpressionVisitException extends ODataException { private static final long serialVersionUID = 1L; + public ExpressionVisitException(String msg) { + super(msg); + } + + public ExpressionVisitException(String msg, Throwable cause) { + super(msg, cause); + } + + public ExpressionVisitException(Throwable cause) { + super(cause); + } }
