Skip to content

Commit 1024ba9

Browse files
author
ben
committedFeb 11, 2020
added info re new exception
1 parent 57e2683 commit 1024ba9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎docs/InMemoryTokenSelection.md

+6
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,9 @@ abstract class SdxTokenReleaseFlow<out T> : FlowLogic<T>() {
202202

203203
}
204204
```
205+
206+
### Exception Handling
207+
208+
There is a new exception in LTS. Previously if there were not enough tokens we used to throw an `IllegalStateException`, and indeed we still
209+
do throw this in certain circumstances. But if you do not have enough tokens we now throw an `InsufficientBalanceException` so that you can
210+
pick this out explicitly. NB you may need to catch both `IllegalStateException` and `InsufficientBalanceException` now.

0 commit comments

Comments
 (0)