-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make HystrixTimeoutException public so that user-defined execution me…
…thods may return it
- Loading branch information
Matt Jacobs
committed
Oct 14, 2015
1 parent
93fe130
commit 70615dc
Showing
2 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
hystrix-core/src/main/java/com/netflix/hystrix/exception/HystrixTimeoutException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Copyright 2015 Netflix, 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.netflix.hystrix.exception; | ||
|
||
import com.netflix.hystrix.HystrixCommand; | ||
import com.netflix.hystrix.HystrixObservableCommand; | ||
|
||
/** | ||
* An exception representing an error where the provided execution method took longer than the Hystrix timeout. | ||
* <p> | ||
* Hystrix will trigger an exception of this type if it times out an execution. This class is public, so | ||
* user-defined execution methods ({@link HystrixCommand#run()} / {@link HystrixObservableCommand#construct()) may also | ||
* throw this error. If you want some types of failures to be counted as timeouts, you may wrap those failures in | ||
* a HystrixTimeoutException. See https://github.com/Netflix/Hystrix/issues/920 for more discussion. | ||
*/ | ||
public class HystrixTimeoutException extends Exception { | ||
|
||
private static final long serialVersionUID = -5085623652043595962L; | ||
|
||
} | ||
|