26
26
import com .exonum .binding .core .service .NodeProxy ;
27
27
import com .exonum .binding .core .storage .database .Fork ;
28
28
import com .exonum .binding .core .storage .database .Snapshot ;
29
- import com .exonum .binding .core .transaction .TransactionExecutionException ;
29
+ import com .exonum .binding .core .transaction .ExecutionException ;
30
30
import com .exonum .core .messages .Runtime .ArtifactId ;
31
31
import com .exonum .core .messages .Runtime .InstanceSpec ;
32
32
import com .exonum .core .messages .Runtime .InstanceState ;
@@ -132,8 +132,11 @@ private static ArtifactId parseArtifact(byte[] artifactId) {
132
132
* protobuf message
133
133
* @param configuration the service initial configuration parameters as a serialized protobuf
134
134
* message
135
- * @see ServiceRuntime#initiateAddingService(Fork, ServiceInstanceSpec, byte[])
136
135
* @throws CloseFailuresException if there was a failure in destroying some native peers
136
+ * @throws ExecutionException if the service initialization failed
137
+ * @throws UnexpectedExecutionException if the service initialization failed
138
+ * with an unexpected exception
139
+ * @see ServiceRuntime#initiateAddingService(Fork, ServiceInstanceSpec, byte[])
137
140
*/
138
141
void initiateAddingService (long forkHandle , byte [] instanceSpec , byte [] configuration )
139
142
throws CloseFailuresException {
@@ -188,16 +191,16 @@ private static ServiceInstanceSpec parseInstanceSpec(byte[] instanceSpec) {
188
191
* inner transactions); or 0 when the caller is an external message
189
192
* @param txMessageHash the hash of the transaction message
190
193
* @param authorPublicKey the public key of the transaction author
191
- * @throws TransactionExecutionException if the transaction execution failed
192
- * @throws UnexpectedTransactionExecutionException if the transaction execution failed
193
- * with an unexpected exception with no error code
194
+ * @throws ExecutionException if the transaction execution failed
195
+ * @throws UnexpectedExecutionException if the transaction execution failed
196
+ * with an unexpected exception
194
197
* @throws IllegalArgumentException if any argument is not valid
195
198
* @see ServiceRuntime#executeTransaction(int, String, int, byte[], Fork, int, HashCode,
196
199
* PublicKey)
197
200
*/
198
201
void executeTransaction (int serviceId , String interfaceName , int txId , byte [] arguments ,
199
202
long forkNativeHandle , int callerServiceId , byte [] txMessageHash , byte [] authorPublicKey )
200
- throws TransactionExecutionException , CloseFailuresException {
203
+ throws CloseFailuresException {
201
204
202
205
try (Cleaner cleaner = new Cleaner ("executeTransaction" )) {
203
206
Fork fork = viewFactory .createFork (forkNativeHandle , cleaner );
@@ -216,6 +219,9 @@ void executeTransaction(int serviceId, String interfaceName, int txId, byte[] ar
216
219
*
217
220
* @param forkHandle a handle to the native fork object, which must support checkpoints
218
221
* and rollbacks
222
+ * @throws ExecutionException if the transaction execution failed
223
+ * @throws UnexpectedExecutionException if the transaction execution failed
224
+ * with an unexpected exception
219
225
* @throws CloseFailuresException if there was a failure in destroying some native peers
220
226
* @see ServiceRuntime#afterTransactions(int, Fork)
221
227
*/
0 commit comments