github.com/puellanivis/breton@v0.2.16/lib/files/about/errors.go (about)

     1  package aboutfiles
     2  
     3  import (
     4  	"errors"
     5  	"os"
     6  )
     7  
     8  type errorURL struct {
     9  	error
    10  }
    11  
    12  func (e errorURL) ReadAll() ([]byte, error) {
    13  	return nil, e.error
    14  }
    15  
    16  func (e errorURL) ReadDir() ([]os.FileInfo, error) {
    17  	return nil, e.error
    18  }
    19  
    20  func (e errorURL) Unwrap() error {
    21  	return e.error
    22  }
    23  
    24  // ErrNoSuchHost defines an error, where a DNS host lookup failed to resolve.
    25  var ErrNoSuchHost = errors.New("no such host")