@@ -642,10 +642,9 @@ namespace compression
642642 public:
643643 bool has_error () const
644644 {
645- // Compression/Decompression has not been implemented or configured on this platform
646645 if (!stream_compressor::is_supported ())
647646 {
648- throw std::exception ( );
647+ throw std::runtime_error ( " Compression/Decompression has not been implemented or configured on this platform " );
649648 }
650649 return true ;
651650 }
@@ -657,10 +656,9 @@ namespace compression
657656 stream_compressor_impl (compression_algorithm) {}
658657 compression::data_buffer compress (const uint8_t * data, size_t size, bool )
659658 {
660- // Compression is not implemented or configured on this platform
661659 if (!stream_compressor::is_supported ())
662660 {
663- throw std::exception ( );
661+ throw std::runtime_error ( " Compression is not implemented or configured on this platform " );
664662 }
665663
666664 return data_buffer (data, data + size);
@@ -673,10 +671,9 @@ namespace compression
673671 stream_decompressor_impl (compression_algorithm) {}
674672 compression::data_buffer decompress (const uint8_t * data, size_t size)
675673 {
676- // Decompression is not implemented or configured on this platform
677674 if (!stream_decompressor::is_supported ())
678675 {
679- throw std::exception ( );
676+ throw std::runtime_error ( " Decompression is not implemented or configured on this platform " );
680677 }
681678
682679 return data_buffer (data, data + size);
0 commit comments