Skip to content

Commit c328a5e

Browse files
committed
fungiblehousetoken error messages updated
1 parent 39051d0 commit c328a5e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tokens/fungiblehousetoken/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public SignedTransaction call() throws FlowException {
5050
StateAndRef<FungibleHouseTokenState> stateAndRef = getServiceHub().getVaultService().
5151
queryBy(FungibleHouseTokenState.class).getStates().stream()
5252
.filter(sf->sf.getState().getData().getSymbol().equals(symbol)).findAny()
53-
.orElseThrow(()-> new IllegalArgumentException("StockState symbol=\""+symbol+"\" not found from vault"));
53+
.orElseThrow(()-> new IllegalArgumentException("FungibleHouseTokenState symbol=\""+symbol+"\" not found from vault"));
5454

5555
//get the RealEstateEvolvableTokenType object
5656
FungibleHouseTokenState evolvableTokenType = stateAndRef.getState().getData();
@@ -76,7 +76,7 @@ public SignedTransaction call() throws FlowException {
7676
StateAndRef<FungibleHouseTokenState> stateAndRef = getServiceHub().getVaultService().
7777
queryBy(FungibleHouseTokenState.class).getStates().stream()
7878
.filter(sf->sf.getState().getData().getSymbol().equals(symbol)).findAny()
79-
.orElseThrow(()-> new IllegalArgumentException("StockState symbol=\""+symbol+"\" not found from vault"));
79+
.orElseThrow(()-> new IllegalArgumentException("FungibleHouseTokenState symbol=\""+symbol+"\" not found from vault"));
8080

8181
//get the RealEstateEvolvableTokenType object
8282
FungibleHouseTokenState tokenstate = stateAndRef.getState().getData();

Tokens/fungiblehousetoken/workflows/src/main/java/net/corda/examples/tokenizedhouse/flows/RealEstateEvolvableFungibleTokenFlow.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public SignedTransaction call() throws FlowException {
8888
StateAndRef<FungibleHouseTokenState> stateAndRef = getServiceHub().getVaultService().
8989
queryBy(FungibleHouseTokenState.class).getStates().stream()
9090
.filter(sf->sf.getState().getData().getSymbol().equals(symbol)).findAny()
91-
.orElseThrow(()-> new IllegalArgumentException("StockState symbol=\""+symbol+"\" not found from vault"));
91+
.orElseThrow(()-> new IllegalArgumentException("FungibleHouseTokenState symbol=\""+symbol+"\" not found from vault"));
9292

9393
//get the RealEstateEvolvableTokenType object
9494
FungibleHouseTokenState evolvableTokenType = stateAndRef.getState().getData();
@@ -129,7 +129,7 @@ public SignedTransaction call() throws FlowException {
129129
StateAndRef<FungibleHouseTokenState> stateAndRef = getServiceHub().getVaultService().
130130
queryBy(FungibleHouseTokenState.class).getStates().stream()
131131
.filter(sf->sf.getState().getData().getSymbol().equals(symbol)).findAny()
132-
.orElseThrow(()-> new IllegalArgumentException("StockState symbol=\""+symbol+"\" not found from vault"));
132+
.orElseThrow(()-> new IllegalArgumentException("FungibleHouseTokenState=\""+symbol+"\" not found from vault"));
133133

134134
//get the RealEstateEvolvableTokenType object
135135
FungibleHouseTokenState tokenstate = stateAndRef.getState().getData();
@@ -188,7 +188,7 @@ public Unit call() throws FlowException {
188188
// StateAndRef<FungibleHouseTokenState> stateAndRef = getServiceHub().getVaultService().
189189
// queryBy(FungibleHouseTokenState.class).getStates().stream()
190190
// .filter(sf->sf.getState().getData().getSymbol().equals(symbol)).findAny()
191-
// .orElseThrow(()-> new IllegalArgumentException("StockState symbol=\""+symbol+"\" not found from vault"));
191+
// .orElseThrow(()-> new IllegalArgumentException("FungibleHouseTokenState symbol=\""+symbol+"\" not found from vault"));
192192
//
193193
// //get the RealEstateEvolvableTokenType object
194194
// FungibleHouseTokenState evolvableTokenType = stateAndRef.getState().getData();

0 commit comments

Comments
 (0)