30 lines
661 B
Go
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{}
|
|
}
|