Versions in this module Expand all Collapse all v0 v0.1.6 Mar 6, 2024 v0.1.4 Mar 6, 2024 v0.1.2 Apr 9, 2023 Changes in this version + const MessageError + const MessageWarn + const Notification + const Page + const Silent + var File_errors_proto protoreflect.FileDescriptor + func Equal(err1 error, err2 error) bool + func New(id, domain string, code ErrorCoder) error + type Error struct + Domain string + ErrorCode string + ErrorMessage string + ShowType string + Success bool + TraceId string + func FromError(err error) *Error + func Parse(errStr string) *Error + func (*Error) Descriptor() ([]byte, []int) + func (*Error) ProtoMessage() + func (e *Error) Error() string + func (x *Error) GetDomain() string + func (x *Error) GetErrorCode() string + func (x *Error) GetErrorMessage() string + func (x *Error) GetShowType() string + func (x *Error) GetSuccess() bool + func (x *Error) GetTraceId() string + func (x *Error) ProtoReflect() protoreflect.Message + func (x *Error) Reset() + func (x *Error) String() string + type ErrorCode int32 + const BadRequest + const Conflict + const Forbidden + const InternalServerError + const MethodNotAllowed + const NotFound + const OK + const Timeout + const Unauthorized + func (e ErrorCode) Code() int32 + func (i ErrorCode) String() string + type ErrorCoder interface + Code func() int32 + String func() string