package
0.0.0-20250117172423-5e1936591be9
Repository: https://github.com/webitel/cases.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
MakeScopeError returns an AppError when a user lacks the required scope access.
NewAuthError creates a new AuthError with the specified ID and message.
No description provided by the author
NewConfigError creates a new ConfigError with the specified ID and message.
No description provided by the author
No description provided by the author
NewDBConflictError creates a new DBConflictError with the specified ID and message.
No description provided by the author
NewDBError creates a new DBError with the specified ID and message.
NewDBForbiddenError creates a new DBForbiddenError with the specified ID and message.
No description provided by the author
No description provided by the author
No description provided by the author
NewDBNotFoundError creates a new DBNotFoundError with the specified ID and message.
No description provided by the author
No description provided by the author
No description provided by the author
NewGRPCError creates a new GRPCError with the specified code and message.
Error constructors.
NewInvalidArgumentError creates a new invalid argument error for gRPC responses.
No description provided by the author
NewRegistryError creates a new RegistryError with the specified ID and message.
No description provided by the author
NewValidationError creates a new validation error with details about the field and violation.
RegisterConstraint registers custom database check constraints with a custom message.
# Structs
No description provided by the author
AuthError represents a generic authentication error.
ConfigError represents an error that occurs during configuration loading.
DBCheckViolationError indicates a check constraint violation.
DBConflictError indicates a conflict in the database operation (e.g., version mismatch).
DBEntityConflictError indicates a conflict in entity requests.
DBError represents a generic database error.
DBForbiddenError indicates that the user is forbidden from performing an action.
DBForeignKeyViolationError indicates a foreign key constraint violation.
DBInternalError indicates an internal database error.
DBNoRowsError indicates that no rows were found for a query.
DBNotFoundError indicates that a specific entity was not found.
DBNotNullViolationError indicates a not-null constraint violation.
DBUniqueViolationError indicates a unique constraint violation.
GRPCError represents a generic gRPC error with a gRPC code.
RegistryError represents an error that occurs during service registration or deregistration.
UnauthorizedError indicates an unauthorized access attempt.
# Interfaces
No description provided by the author