Skip to content

Commit 23517a3

Browse files
authored
Merge pull request cms-sw#43274 from Dr15Jones/SonicUseExternalFailureException
Change Sonic to use ExternalFailure exception
2 parents 8811b2f + 42e3364 commit 23517a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HeterogeneousCore/SonicCore/src/SonicClientBase.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ void SonicClientBase::finish(bool success, std::exception_ptr eptr) {
5454
}
5555
//prepare an exception if exceeded
5656
else {
57-
cms::Exception ex("SonicCallFailed");
58-
ex << "call failed after max " << tries_ << " tries";
57+
edm::Exception ex(edm::errors::ExternalFailure);
58+
ex << "SonicCallFailed: call failed after max " << tries_ << " tries";
5959
eptr = make_exception_ptr(ex);
6060
}
6161
}

0 commit comments

Comments
 (0)