Documentation ¶
Index ¶
- Constants
- func CustomError(err error) error
- func CustomErrorWrap(err error, message string) error
- func GetCustomStackTrace(err error) errors.StackTrace
- func NewAlreadyExists(message string) error
- func NewInvalidAuthError(message string) error
- func NewNotFoundError(message string) error
- func NewRequestError(code string, message string) error
- func NewValidationError(message string) error
- type RequestError
Constants ¶
View Source
const ( CodeDefault = "-1" // バリデーションエラー CodeValidation = "000001" // 無効な認証 CodeInvalidAuthorization = "000002" // Not Found CodeNotFound = "000003" // Already Exists CodeAlreadyExists = "000004" // 自身の招待コード CodeMyInviteCode = "000005" // ユーザー削除時に共有メンバーが存在する HasRelationshipByDeleteUser = "000006" )
Variables ¶
This section is empty.
Functions ¶
func CustomError ¶
func CustomErrorWrap ¶
func GetCustomStackTrace ¶
func GetCustomStackTrace(err error) errors.StackTrace
func NewAlreadyExists ¶
func NewInvalidAuthError ¶
func NewNotFoundError ¶
func NewRequestError ¶
func NewValidationError ¶
Types ¶
type RequestError ¶
func (RequestError) Error ¶
func (re RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.