Use own error type throughout a library.

Use FromError trait to convert fro IoError.