fix: client errors for DNS service creation errors (#10584)

This commit is contained in:
Ritesh H Shukla
2020-09-30 14:09:41 -07:00
committed by GitHub
parent 0d45c38782
commit 5a7f92481e
3 changed files with 42 additions and 5 deletions

View File

@@ -16,6 +16,22 @@
package dns
// Error - DNS related errors error.
type Error struct {
Bucket string
Err error
}
// ErrInvalidBucketName for buckets with invalid name
type ErrInvalidBucketName Error
func (e ErrInvalidBucketName) Error() string {
return "invalid bucket name error: " + e.Err.Error()
}
func (e Error) Error() string {
return "dns related error: " + e.Err.Error()
}
// Store dns record store
type Store interface {
Put(bucket string) error