mirror of
https://github.com/wahyd4/kt-connect.git
synced 2026-08-09 05:16:02 +10:00
17 lines
317 B
Go
17 lines
317 B
Go
package dnsserver
|
|
|
|
// DomainNotExistError ...
|
|
type DomainNotExistError struct {
|
|
name string
|
|
}
|
|
|
|
func (e DomainNotExistError) Error() string {
|
|
return "domain " + e.name + " not exist"
|
|
}
|
|
|
|
// IsDomainNotExist check the error type
|
|
func IsDomainNotExist(err error) bool {
|
|
_, ok := err.(DomainNotExistError)
|
|
return ok
|
|
}
|