MCPcopy Create free account
hub / github.com/SwishHQ/spread / BadRequestException

Function BadRequestException

exception/exception.go:14–16  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

12}
13
14func BadRequestException(msg string) error {
15 return fiber.NewError(fiber.StatusBadRequest, msg)
16}
17
18func ConflictException(resourceName string, fieldName string, fieldValue string) error {
19 msg := fmt.Sprintf("%s with %s : %s already exists", resourceName, fieldName, fieldValue)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected