func (e ErrUnableToDecode) Unwrap() error {
	return e.Err
}
Unwrap returns the wrapped error
package dque
import (
	"bytes"
	"encoding/binary"
	"encoding/gob"
	"fmt"
	"io"
	"os"
	"path"
	"sync"
	"github.com/pkg/errors"
)
type ErrCorruptedSegment struct {
	Path string
	Err  error
}
func (e ErrCorruptedSegment) Error() string {
	return fmt.Sprintf("segment file %s is corrupted: %s", e.Path, e.Err)
}
func (e ErrCorruptedSegment) Unwrap() error {
	return e.Err
}
type ErrUnableToDecode struct {
	Path string
	Err  error
}
func (e ErrUnableToDecode) Error() string {
	return fmt.Sprintf("object in segment file %s cannot be decoded: %s", e.Path, e.Err)
}