pages-server/errors/dns.go
hazycora e7a14c2100
All checks were successful
Deploy to VPS / build_site (push) Successful in 6s
add error pages
2024-03-29 23:03:26 -05:00

30 lines
661 B
Go

package errors
type ErrorNotPointedAtUs struct{}
type ErrorDNSNotConfigured struct{}
type ErrorInvalidTarget struct{}
func (e ErrorNotPointedAtUs) Error() string {
return "domain is not pointed at pages.gay"
}
func NewErrorNotPointedAtUs() *ErrorNotPointedAtUs {
return &ErrorNotPointedAtUs{}
}
func (e ErrorDNSNotConfigured) Error() string {
return "domain is not configured for a site"
}
func NewErrorDNSNotConfigured() *ErrorDNSNotConfigured {
return &ErrorDNSNotConfigured{}
}
func (e ErrorInvalidTarget) Error() string {
return "domain had an invalid target"
}
func NewErrorInvalidTarget() *ErrorInvalidTarget {
return &ErrorInvalidTarget{}
}