errs

package
v0.0.0-...-12f777f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyUsernameOrPassword                 = errors.New("Please provide a username and password to login")
	StorageNoUsernameIsSet                  = errors.New("No Username is set in storage handler")
	EmptyDeviceString                       = errors.New("device string is empty")
	NotLoggedIn                             = errors.New("User not logged in")
	NoDataForStreamCreation                 = errors.New("No data is provided for stream creation")
	InvalidRequestOptions                   = errors.New("Invalid request options")
	RequestedResourceNotExist               = errors.New("Requested resource does not exist")
	NoResponseFromServer                    = errors.New("No response from server. Either a connection or configuration error.")
	UnknownMessageObject                    = errors.New("Unknown message object. Expected errors subarray but found something else. Please submit a ticket about needing an InstagramInterface-API library update!")
	UnknownMessageType                      = errors.New("Unknown message type. Please submit a ticket about needing an InstagramInterface-API library update!")
	EmptyCookiesFilePath                    = errors.New("Empty cookies file path")
	ThrottledResponse                       = errors.New("Throttled by InstagramInterface because of too many API requests.")
	RequestHeaderTooLargeResponse           = errors.New("The request start-line and/or headers are too large to process.")
	UsernameAndPasswordRequiredForTwoFactor = errors.New("You must provide a username and password to finishTwoFactorLogin()")
	VerificationCodeRequiredForTwoFactor    = errors.New("You must provide a verification code and two-factor identifier to finishTwoFactorLogin().")
)

Functions

func BadPushChannel

func BadPushChannel(channel string) error

func CannotCreateFormFieldFromFile

func CannotCreateFormFieldFromFile(filepath, err string) error

func CannotDeleteCookiesFile

func CannotDeleteCookiesFile(filepath, err string) error

func CannotMarshalJSON

func CannotMarshalJSON(structVal interface{}, err string) error

func CannotOpenFile

func CannotOpenFile(filepath, err string) error

func CookiesFileNotWritable

func CookiesFileNotWritable(filepath, err string) error

func CreateFolder

func CreateFolder(err string) error

func EmptyParameter

func EmptyParameter(param string) error

func ErrorBuildingHTTPRequest

func ErrorBuildingHTTPRequest(err string) error

func ErrorGettingHTTPResponse

func ErrorGettingHTTPResponse(err string) error

func ErrorReadingHTTPResponseBody

func ErrorReadingHTTPResponseBody(err string) error

func GetError

func GetError(prefix *string, serverMessage *string, response interface{}, httpResponse *http.Response) (err error)

func InvalidAppRefreshInterval

func InvalidAppRefreshInterval(interval int) error

func InvalidBiography

func InvalidBiography(bio string) error

func InvalidDeviceFormat

func InvalidDeviceFormat(deviceString string) error

func InvalidHTTPStatus

func InvalidHTTPStatus(statusCode int) error

func InvalidIdForIgtv

func InvalidIdForIgtv(item interface{}) error

func InvalidItem

func InvalidItem(item interface{}) error

func InvalidLoginResponse

func InvalidLoginResponse(message string) error

func InvalidMethodForTwoFactor

func InvalidMethodForTwoFactor(method string) error

func InvalidStorageVersion

func InvalidStorageVersion(version int) error

func MissingMentionInReply

func MissingMentionInReply(reply string) error

func MoveFile

func MoveFile(oldPath, newPath, err string) error

func NotEnoughDeviceStringResolution

func NotEnoughDeviceStringResolution(deviceString, minimum string) error

func NotEnoughDeviceStringVersion

func NotEnoughDeviceStringVersion(deviceString, minimum string) error

func NotSupportedApiVersion

func NotSupportedApiVersion(version int) error

func NotValidPersistentKey

func NotValidPersistentKey(key string) error

func ParameterMustBeString

func ParameterMustBeString(param string) error

func PathAlreadyExists

func PathAlreadyExists(path string) error

func PathNotExist

func PathNotExist(path string) error

func ReadFile

func ReadFile(filePath, err string) error

func SettingsKeyNotFound

func SettingsKeyNotFound(key string) error

func TooHighAppRefreshInterval

func TooHighAppRefreshInterval(interval int) error

func UnknownItem

func UnknownItem(item interface{}) error

func UnknownSearchType

func UnknownSearchType(t string) error

func UnknownSettingsStorageType

func UnknownSettingsStorageType(sType string) error

Types

type AccountDisabled

type AccountDisabled GistaError

func (AccountDisabled) Error

func (ad AccountDisabled) Error() string

type BadRequest

type BadRequest GistaError

func (BadRequest) Error

func (br BadRequest) Error() string

type ChallengeRequired

type ChallengeRequired struct {
	Type         *string
	Message      *string
	HTTPResponse responses.ResponseInterface
}

func (ChallengeRequired) Error

func (cr ChallengeRequired) Error() string

func (ChallengeRequired) GetChallenge

func (cr ChallengeRequired) GetChallenge() *models.Challenge

type CheckpointRequired

type CheckpointRequired struct {
	Type         *string
	Message      *string
	HTTPResponse responses.ResponseInterface
}

func (CheckpointRequired) Error

func (cp CheckpointRequired) Error() string

func (CheckpointRequired) GetCheckpointUrl

func (cp CheckpointRequired) GetCheckpointUrl() string

type ConsentRequired

type ConsentRequired GistaError

func (ConsentRequired) Error

func (cr ConsentRequired) Error() string

type FeedbackRequired

type FeedbackRequired GistaError

func (FeedbackRequired) Error

func (fr FeedbackRequired) Error() string

type ForcedPasswordReset

type ForcedPasswordReset GistaError

func (ForcedPasswordReset) Error

func (fpr ForcedPasswordReset) Error() string

type GistaError

type GistaError struct {
	Type         *string
	Message      *string
	HTTPResponse responses.ResponseInterface
}

func (GistaError) Error

func (g GistaError) Error() string

type IncorrectPassword

type IncorrectPassword GistaError

func (IncorrectPassword) Error

func (ip IncorrectPassword) Error() string

type InvalidParameters

type InvalidParameters GistaError

func (InvalidParameters) Error

func (ip InvalidParameters) Error() string

type InvalidSmsCode

type InvalidSmsCode GistaError

func (InvalidSmsCode) Error

func (isc InvalidSmsCode) Error() string

type InvalidUser

type InvalidUser GistaError

func (InvalidUser) Error

func (iu InvalidUser) Error() string

type JsonUnmarshal

type JsonUnmarshal GistaError

func (JsonUnmarshal) Error

func (ad JsonUnmarshal) Error() string

type LoginRequired

type LoginRequired GistaError

func (LoginRequired) Error

func (lr LoginRequired) Error() string

type NotAuthorized

type NotAuthorized GistaError

func (NotAuthorized) Error

func (na NotAuthorized) Error() string

type RateLimit

type RateLimit GistaError

func (RateLimit) Error

func (rl RateLimit) Error() string

type SentryBlock

type SentryBlock GistaError

func (SentryBlock) Error

func (sb SentryBlock) Error() string

type TwoFactorRequired

type TwoFactorRequired struct {
	Type         *string
	Message      *string
	HTTPResponse responses.ResponseInterface
}

func (TwoFactorRequired) Error

func (tfr TwoFactorRequired) Error() string

func (TwoFactorRequired) GetTwoFactorInfo

func (tfr TwoFactorRequired) GetTwoFactorInfo() *models.TwoFactorInfo

type UserNotFound

type UserNotFound GistaError

func (UserNotFound) Error

func (unf UserNotFound) Error() string

Jump to

Keyboard shortcuts

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