github.com/fzfile/BaiduPCS-Go@v0.0.0-20200606205115-4408961cf336/internal/pcsconfig/errors.go (about)

     1  package pcsconfig
     2  
     3  import (
     4  	"errors"
     5  )
     6  
     7  var (
     8  	//ErrNotLogin 未登录帐号错误
     9  	ErrNotLogin = errors.New("baidu user not login")
    10  	//ErrConfigFilePathNotSet 未设置配置文件
    11  	ErrConfigFilePathNotSet = errors.New("config file not set")
    12  	//ErrConfigFileNotExist 未设置Config, 未初始化
    13  	ErrConfigFileNotExist = errors.New("config file not exist")
    14  	//ErrConfigFileNoPermission Config文件无权限访问
    15  	ErrConfigFileNoPermission = errors.New("config file permission denied")
    16  	//ErrConfigContentsParseError 解析Config数据错误
    17  	ErrConfigContentsParseError = errors.New("config contents parse error")
    18  )