errors

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthorErasureDisabledError = Error{
	Message: "author erasure is disabled; set gdprAuthorErasure.enabled = true in settings.json to enable GDPR Art. 17 erasure",
	Error:   403,
}

AuthorErasureDisabledError: gdprAuthorErasure.enabled is off, the default (opt-in as in etherpad-lite).

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 NotAGroupPadError = Error{
	Message: "You can only get/set the publicStatus of pads that belong to a group",
	Error:   400,
}

NotAGroupPadError mirrors the original Etherpad checkGroupPad guard: public status can only be read or changed on pads that belong to a group.

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" example:"Pad not found"`
	Error   int    `json:"error" example:"404"`
}

Error represents an API error @Description Standardized API error response

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