Skip to content

Commit aadf8a7

Browse files
Clarify when the exception is appropriate
1 parent a45a411 commit aadf8a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

exonum-java-binding/core/src/main/java/com/exonum/binding/core/service/TransactionConverter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ public interface TransactionConverter {
3939
* @param arguments the {@linkplain TransactionMessage#getPayload() serialized transaction
4040
* arguments}
4141
* @return an executable transaction of the service
42-
* @throws IllegalArgumentException if the raw transaction is malformed or not known
43-
* to the service
42+
* @throws IllegalArgumentException if the transaction is not known to the service,
43+
* or the arguments are not valid: e.g., cannot be deserialized, or do not meet
44+
* the preconditions
4445
*/
4546
Transaction toTransaction(int txId, byte[] arguments);
4647
}

0 commit comments

Comments
 (0)