Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

Commit

Permalink
Documentation for error enum added
Browse files Browse the repository at this point in the history
  • Loading branch information
sochalewski committed Feb 26, 2016
1 parent eee3059 commit 74dfaef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions NSData+Compressor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,19 @@ public enum CompressionAlgorithm {

public enum CompressionError: ErrorType {

/**
The error received when trying to compress/decompress empty data (when length equals zero).
*/
case EmptyData

/**
The error received when `compression_stream_init` failed. It also fails when trying to decompress `NSData` compressed with different compression algorithm or uncompressed raw data.
*/
case InitError

/**
The error received when `compression_stream_process` failed.
*/
case ProcessError

}
Expand Down
2 changes: 1 addition & 1 deletion SwiftCompressor.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftCompressor"
s.version = "0.1.0"
s.version = "0.1.1"
s.summary = "Compression framework easily"
s.description = "SwiftCompressor lets you use Compression framework easily"
s.homepage = "https://github.com/DroidsOnRoids/SwiftCompressor"
Expand Down

0 comments on commit 74dfaef

Please sign in to comment.