github.com/supragya/TendermintConnector@v0.0.0-20210619045051-113e32b84fb1/_deprecated_chains/cosmos/libs/errors/errors.go (about)

     1  // Package errors contains errors that are thrown across packages.
     2  package errors
     3  
     4  // // ErrPermissionsChanged occurs if the file permission have changed since the file was created.
     5  // type ErrPermissionsChanged struct {
     6  // 	name      string
     7  // 	got, want os.FileMode
     8  // }
     9  
    10  // func NewErrPermissionsChanged(name string, got, want os.FileMode) *ErrPermissionsChanged {
    11  // 	return &ErrPermissionsChanged{name: name, got: got, want: want}
    12  // }
    13  
    14  // func (e ErrPermissionsChanged) Error() string {
    15  // 	return fmt.Sprintf(
    16  // 		"file: [%v]\nexpected file permissions: %v, got: %v",
    17  // 		e.name,
    18  // 		e.want,
    19  // 		e.got,
    20  // 	)
    21  // }