Versions in this module Expand all Collapse all v1 v1.5.4 Nov 2, 2022 v1.5.3 Oct 16, 2022 v1.5.2 Jan 6, 2022 v1.5.1 Jan 6, 2022 v1.5.0 Jan 6, 2022 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