Mercurial > hg > orthanc
diff OrthancServer/FromDcmtkBridge.cpp @ 1582:bd1889029cbb
encoding of exceptions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 17:39:38 +0200 |
parents | ad1e127b4ed5 |
children | 96582230ddcb |
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp Tue Aug 25 16:18:37 2015 +0200 +++ b/OrthancServer/FromDcmtkBridge.cpp Tue Aug 25 17:39:38 2015 +0200 @@ -215,7 +215,8 @@ { if (!element.isLeaf()) { - throw OrthancException("Only applicable to leaf elements"); + // This function is only applicable to leaf elements + throw OrthancException(ErrorCode_BadParameterType); } if (element.isaString()) @@ -594,7 +595,7 @@ if (entry == NULL) { dcmDataDict.unlock(); - throw OrthancException("Unknown DICOM tag"); + throw OrthancException(ErrorCode_UnknownDicomTag); } else { @@ -611,7 +612,7 @@ } else { - throw OrthancException("Unknown DICOM tag"); + throw OrthancException(ErrorCode_UnknownDicomTag); } #endif }