errors

package
v0.0.0-...-522ee63 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ServiceID errors.Service = 5
)

Variables

View Source
var (
	RequestCreationError = errors.Error{
		Code: errors.Code{
			Service:     ServiceID,
			ErrorType:   errors.TypeLibrary,
			ErrorNumber: 1,
		},
		Message: "Failed to create new HTTP Request",
	}
	StringToIntError = errors.Error{
		Code: errors.Code{
			Service:     ServiceID,
			ErrorType:   errors.TypeLibrary,
			ErrorNumber: 2,
		},
		Message: "Failed to convert string to integer",
	}
	UnmarshalError = errors.Error{
		Code: errors.Code{
			Service:     ServiceID,
			ErrorType:   errors.TypeLibrary,
			ErrorNumber: 3,
		},
		Message: "Failed to convert bytes to structure",
	}
	// Network Errors
	RequestCouldNotBeCompleted = errors.Error{
		Code: errors.Code{
			Service:     ServiceID,
			ErrorType:   errors.TypeNetwork,
			ErrorNumber: 1,
		},
		Message: "Failed to perform request to: %s",
	}
	TorrentAuthenticationError = errors.Error{
		Code: errors.Code{
			Service:     ServiceID,
			ErrorType:   errors.TypeNetwork,
			ErrorNumber: 2,
		},
		Message: "Failed to log in with the given credentials",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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