Documentation
¶
Index ¶
- func EnsureInternal(err error) error
- type Error
- func AlreadyExists(subject, key string, value any) *Error
- func BadRequest(err error) *Error
- func BadRequestHidden(err error, message string) *Error
- func Forbidden(message string) *Error
- func Internal(err error) *Error
- func InternalWithoutStackTrace(err error) *Error
- func NotFound(subject, key string, value any) *Error
- func Unauthorized(message string) *Error
- func UnauthorizedHidden(err error, message string) *Error
- func ValidationError(err error) *Error
- func VersionMismatch(subject, key string, value any, version int) *Error
- func WrapInternal(err error) *Error
- type GrpcStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureInternal ¶
Types ¶
type Error ¶
type Error struct {
Code codes.Code
StackTrace string
IncidentID string
// contains filtered or unexported fields
}
func AlreadyExists ¶
func BadRequest ¶
func BadRequestHidden ¶
func Unauthorized ¶
func UnauthorizedHidden ¶
func ValidationError ¶
func WrapInternal ¶
func (*Error) GRPCStatus ¶
func (*Error) ToGRPCError ¶
type GrpcStatus ¶
Click to show internal directories.
Click to hide internal directories.