Skip to content

Commit 9ce8e94

Browse files
committed
fix merge conflicts
1 parent 9877948 commit 9ce8e94

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

exonum-java-binding/core/src/main/java/com/exonum/binding/core/runtime/ServiceRuntimeAdapter.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import com.exonum.binding.core.service.NodeProxy;
2727
import com.exonum.binding.core.storage.database.Fork;
2828
import com.exonum.binding.core.storage.database.Snapshot;
29-
import com.exonum.binding.core.transaction.TransactionExecutionException;
29+
import com.exonum.binding.core.transaction.ExecutionException;
3030
import com.exonum.core.messages.Runtime.ArtifactId;
3131
import com.exonum.core.messages.Runtime.InstanceSpec;
3232
import com.exonum.core.messages.Runtime.InstanceState;
@@ -132,8 +132,11 @@ private static ArtifactId parseArtifact(byte[] artifactId) {
132132
* protobuf message
133133
* @param configuration the service initial configuration parameters as a serialized protobuf
134134
* message
135-
* @see ServiceRuntime#initiateAddingService(Fork, ServiceInstanceSpec, byte[])
136135
* @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[])
137140
*/
138141
void initiateAddingService(long forkHandle, byte[] instanceSpec, byte[] configuration)
139142
throws CloseFailuresException {
@@ -188,16 +191,16 @@ private static ServiceInstanceSpec parseInstanceSpec(byte[] instanceSpec) {
188191
* inner transactions); or 0 when the caller is an external message
189192
* @param txMessageHash the hash of the transaction message
190193
* @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
194197
* @throws IllegalArgumentException if any argument is not valid
195198
* @see ServiceRuntime#executeTransaction(int, String, int, byte[], Fork, int, HashCode,
196199
* PublicKey)
197200
*/
198201
void executeTransaction(int serviceId, String interfaceName, int txId, byte[] arguments,
199202
long forkNativeHandle, int callerServiceId, byte[] txMessageHash, byte[] authorPublicKey)
200-
throws TransactionExecutionException, CloseFailuresException {
203+
throws CloseFailuresException {
201204

202205
try (Cleaner cleaner = new Cleaner("executeTransaction")) {
203206
Fork fork = viewFactory.createFork(forkNativeHandle, cleaner);
@@ -216,6 +219,9 @@ void executeTransaction(int serviceId, String interfaceName, int txId, byte[] ar
216219
*
217220
* @param forkHandle a handle to the native fork object, which must support checkpoints
218221
* and rollbacks
222+
* @throws ExecutionException if the transaction execution failed
223+
* @throws UnexpectedExecutionException if the transaction execution failed
224+
* with an unexpected exception
219225
* @throws CloseFailuresException if there was a failure in destroying some native peers
220226
* @see ServiceRuntime#afterTransactions(int, Fork)
221227
*/

0 commit comments

Comments
 (0)