   /// - bufferCapacity: capacity of the internal data buffer
   /// - writeFunc: called to write the processed data
   ///
-  /// - Throws: `FilterError.state` if stream initialization failed
+  /// - Throws: `FilterError.invalidState` if stream initialization failed
   public init(
     _ operation: FilterOperation,
     using algorithm: Algorithm,

  /// - Parameter operation: direction of operation
  /// - Parameter algorithm: compression algorithm
  ///
  /// - Throws: `FilterError.state` if `algorithm` is not supported
  ///           by the Compression stream API
  ///
  internal init(operation: FilterOperation, algorithm: Algorithm) throws {

  /// - bufferCapacity: capacity of the internal data buffer
  /// - readFunc: called to read the input data
  ///
  /// - Throws: `FilterError.invalidState` if filter initialization failed
  public init(
    _ operation: FilterOperation,
    using algorithm: Algorithm,
