Mercurial > hg > orthanc
comparison Core/Compression/ZlibCompressor.cpp @ 1582:bd1889029cbb
encoding of exceptions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 17:39:38 +0200 |
parents | 33d34bc4ac15 |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1581:357c4bb15701 | 1582:bd1889029cbb |
---|---|
143 uncompressed.clear(); | 143 uncompressed.clear(); |
144 | 144 |
145 switch (error) | 145 switch (error) |
146 { | 146 { |
147 case Z_DATA_ERROR: | 147 case Z_DATA_ERROR: |
148 throw OrthancException("Zlib: Corrupted or incomplete compressed buffer"); | 148 throw OrthancException(ErrorCode_CorruptedFile); |
149 | 149 |
150 case Z_MEM_ERROR: | 150 case Z_MEM_ERROR: |
151 throw OrthancException(ErrorCode_NotEnoughMemory); | 151 throw OrthancException(ErrorCode_NotEnoughMemory); |
152 | 152 |
153 default: | 153 default: |