Mercurial > hg > orthanc
comparison UnitTestsSources/MultiThreadingTests.cpp @ 1582:bd1889029cbb
encoding of exceptions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 17:39:38 +0200 |
parents | 9f66a12eb8fc |
children | 9ea3d082b064 |
comparison
equal
deleted
inserted
replaced
1581:357c4bb15701 | 1582:bd1889029cbb |
---|---|
94 try | 94 try |
95 { | 95 { |
96 SharedMessageQueue q; | 96 SharedMessageQueue q; |
97 q.Enqueue(new DynamicInteger(10, s)); | 97 q.Enqueue(new DynamicInteger(10, s)); |
98 q.Enqueue(new DynamicInteger(20, s)); | 98 q.Enqueue(new DynamicInteger(20, s)); |
99 throw OrthancException("Nope"); | 99 throw OrthancException(ErrorCode_Custom); |
100 } | 100 } |
101 catch (OrthancException&) | 101 catch (OrthancException&) |
102 { | 102 { |
103 } | 103 } |
104 } | 104 } |