errors

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthorNotFoundError = Error{
	Message: "Author not found",
	Error:   404,
}
View Source
var DataRetrievalError = Error{
	Message: "Failed to retrieve data",
	Error:   500,
}
View Source
var ForbiddenError = Error{
	Message: "Access forbidden",
	Error:   403,
}
View Source
var InternalApiError = Error{
	Message: "Internal API Error",
	Error:   1,
}
View Source
var InternalServerError = Error{
	Message: "Internal server error",
	Error:   500,
}
View Source
var InvalidParameterError = Error{
	Message: "Invalid parameter provided",
	Error:   422,
}
View Source
var InvalidRequestError = Error{
	Message: "Invalid request",
	Error:   400,
}
View Source
var InvalidRevisionError = Error{
	Message: "Invalid revision number",
	Error:   400,
}
View Source
var PadAlreadyExistsError = Error{
	Message: "Pad already exists",
	Error:   409,
}
View Source
var PadNotFoundError = Error{
	Message: "Pad not found",
	Error:   404,
}
View Source
var RevisionHigherThanHeadError = Error{
	Message: "Revision number is higher than head",
	Error:   400,
}
View Source
var RevisionNotFoundError = Error{
	Message: "Revision not found",
	Error:   404,
}
View Source
var TextConversionError = Error{
	Message: "Failed to convert text",
	Error:   500,
}
View Source
var UnauthorizedError = Error{
	Message: "Unauthorized access",
	Error:   401,
}
View Source
var ValidationError = Error{
	Message: "Validation failed",
	Error:   422,
}

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string `json:"message"`
	Error   int    `json:"error"`
}

func NewInvalidParamError

func NewInvalidParamError(paramName string) Error

func NewMissingParamError

func NewMissingParamError(paramName string) Error

Jump to

Keyboard shortcuts

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