Skip to content

Commit 8878688

Browse files
committed
Fix the same typo in 8 Java exception messages
Update codespell.txt remove `excetion`
1 parent 22b753e commit 8878688

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/linters/codespell.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ erro
190190
erronous
191191
everthing
192192
everytime
193-
excetion
194193
excption
195194
excute
196195
execept

server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3105,7 +3105,7 @@ public Volume detachVolumeFromVM(DetachVolumeCmd cmmd) {
31053105
} catch (InterruptedException e) {
31063106
throw new RuntimeException("Operation is interrupted", e);
31073107
} catch (ExecutionException e) {
3108-
throw new RuntimeException("Execution excetion", e);
3108+
throw new RuntimeException("Execution exception", e);
31093109
}
31103110

31113111
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -3534,7 +3534,7 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) {
35343534
} catch (InterruptedException e) {
35353535
throw new RuntimeException("Operation is interrupted", e);
35363536
} catch (ExecutionException e) {
3537-
throw new RuntimeException("Execution excetion", e);
3537+
throw new RuntimeException("Execution exception", e);
35383538
}
35393539

35403540
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -3876,7 +3876,7 @@ private Snapshot takeSnapshotInternal(Long volumeId, Long policyId, Long snapsho
38763876
} catch (InterruptedException e) {
38773877
throw new RuntimeException("Operation is interrupted", e);
38783878
} catch (ExecutionException e) {
3879-
throw new RuntimeException("Execution excetion", e);
3879+
throw new RuntimeException("Execution exception", e);
38803880
}
38813881

38823882
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -4201,7 +4201,7 @@ public String extractVolume(ExtractVolumeCmd cmd) {
42014201
} catch (InterruptedException e) {
42024202
throw new RuntimeException("Operation is interrupted", e);
42034203
} catch (ExecutionException e) {
4204-
throw new RuntimeException("Execution excetion", e);
4204+
throw new RuntimeException("Execution exception", e);
42054205
}
42064206

42074207
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());

server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ public VMSnapshot createVMSnapshot(Long vmId, Long vmSnapshotId, Boolean quiesce
539539
} catch (InterruptedException e) {
540540
throw new RuntimeException("Operation is interrupted", e);
541541
} catch (java.util.concurrent.ExecutionException e) {
542-
throw new RuntimeException("Execution excetion", e);
542+
throw new RuntimeException("Execution exception", e);
543543
}
544544

545545
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -649,7 +649,7 @@ public boolean deleteVMSnapshot(Long vmSnapshotId) {
649649
} catch (InterruptedException e) {
650650
throw new RuntimeException("Operation is interrupted", e);
651651
} catch (java.util.concurrent.ExecutionException e) {
652-
throw new RuntimeException("Execution excetion", e);
652+
throw new RuntimeException("Execution exception", e);
653653
}
654654

655655
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -774,7 +774,7 @@ public UserVm revertToSnapshot(Long vmSnapshotId) throws InsufficientCapacityExc
774774
} catch (InterruptedException e) {
775775
throw new RuntimeException("Operation is interrupted", e);
776776
} catch (java.util.concurrent.ExecutionException e) {
777-
throw new RuntimeException("Execution excetion", e);
777+
throw new RuntimeException("Execution exception", e);
778778
}
779779

780780
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -1025,7 +1025,7 @@ public boolean deleteAllVMSnapshots(long vmId, VMSnapshot.Type type) {
10251025
} catch (InterruptedException e) {
10261026
throw new RuntimeException("Operation is interrupted", e);
10271027
} catch (java.util.concurrent.ExecutionException e) {
1028-
throw new RuntimeException("Execution excetion", e);
1028+
throw new RuntimeException("Execution exception", e);
10291029
}
10301030

10311031
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());

0 commit comments

Comments
 (0)