exception

package
v1.3.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddingRecords

func AddingRecords(err error, domainName string, recordName string) error

AddingRecords is thrown when an an error is encountered adding DNS record

func CheckingAvailability

func CheckingAvailability(err error, domainName string) error

CheckingAvailability is thrown when we are unable to check domain availability

func CreatingNewRequest

func CreatingNewRequest(err error) error

CreatingNewRequest is thrown when we are unable to send a request

func DeletingRecord

func DeletingRecord(err error, domainName string, recordName string, recordType string) error

DeletingRecord is thrown when an error is encountered deleting a DNS record

func FindingRecordsByType

func FindingRecordsByType(err error, domainName, recordType string) error

FindingRecordsByType is thrown when we are unable to list DNS records

func FindingRecordsByTypeAndName

func FindingRecordsByTypeAndName(err error, domainName, recordType, recordName string) error

FindingRecordsByTypeAndName is thrown when we are unable to list DNS records

func GettingDomainDetails

func GettingDomainDetails(err error, domainName string) error

GettingDomainDetails is thrown when there is an error getting domain details

func InvalidAPIEnv

func InvalidAPIEnv(err error) error

InvalidAPIEnv is the error you get when an incorrect Gateway env (production or development) Is privided within a config

func InvalidAPIVersion

func InvalidAPIVersion(err error) error

InvalidAPIVersion is the error you get when an incorrect Gateway version is privided within a config

func InvalidJSONResponse

func InvalidJSONResponse(err error) error

InvalidJSONResponse is thrown when we are unable to read JSON response

func InvalidStatusCode

func InvalidStatusCode(expectedStatus, gotStatus int, err string) error

InvalidStatusCode is when we recieve a bad status code from GoDaddy API

func InvalidValue

func InvalidValue(message string) error

InvalidValue is thrown when an invalid value is being used for an "enum"

func ListingDomains

func ListingDomains(err error) error

ListingDomains is thrown when we are unable to list DNS records

func ListingRecords

func ListingRecords(err error, domainName string) error

ListingRecords is thrown when we are unable to list DNS records

func PurchasingDomain

func PurchasingDomain(err error, domainName string) error

PurchasingDomain is thrown when we are unable to list DNS records

func ReadingBodyContent

func ReadingBodyContent(err error) error

ReadingBodyContent is thrown when we are unable to read body content

func SendingRequest

func SendingRequest(err error) error

SendingRequest is thrown when we are unable to send a request

func UpdatingRecord

func UpdatingRecord(err error, domainName string, recordName string) error

UpdatingRecord is thrown when an an error is encountered updating a DNS record

Types

type Enum

type Enum interface {
	String() string
}

Enum knows how to return a string representation of itself

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL