Skip to content

Commit

Permalink
Merge pull request #1081 from mattrjacobs/cleanup-javanica-bad-reques…
Browse files Browse the repository at this point in the history
…t-docs

Removed reference to wrapped HystrixBadRequestException in javanica docs
  • Loading branch information
mattrjacobs committed Feb 3, 2016
2 parents 4900b4d + 8fc99b3 commit a578774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hystrix-contrib/hystrix-javanica/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ case 2: sync command, async fallback. This case isn't supported for the same rea
Same restrictions are imposed on using observable feature in javanica.

## Error Propagation
Based on [this](https://github.com/Netflix/Hystrix/wiki/How-To-Use#ErrorPropagation) description, `@HystrixCommand` has an ability to specify exceptions types which should be ignored and wrapped to throw in `HystrixBadRequestException`.
Based on [this](https://github.com/Netflix/Hystrix/wiki/How-To-Use#ErrorPropagation) description, `@HystrixCommand` has an ability to specify exceptions types which should be ignored.

```java
@HystrixCommand(ignoreExceptions = {BadRequestException.class})
Expand All @@ -324,7 +324,7 @@ Based on [this](https://github.com/Netflix/Hystrix/wiki/How-To-Use#ErrorPropagat
}
```

If `userResource.getUserById(id);` throws an exception which type is _BadRequestException_ then this exception will be wrapped in `HystrixBadRequestException` and will not affect metrics and will not trigger fallback logic.
If `userResource.getUserById(id);` throws an exception which type is _BadRequestException_ then this exception will be thrown without triggering fallback logic.

## Request Cache

Expand Down

0 comments on commit a578774

Please sign in to comment.