forked from forgejo/forgejo
Add Review
Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
parent
85e1ad593a
commit
623a9f6e3c
3 changed files with 97 additions and 1 deletions
|
@ -1221,3 +1221,25 @@ func IsErrExternalLoginUserNotExist(err error) bool {
|
|||
func (err ErrExternalLoginUserNotExist) Error() string {
|
||||
return fmt.Sprintf("external login user link does not exists [userID: %d, loginSourceID: %d]", err.UserID, err.LoginSourceID)
|
||||
}
|
||||
|
||||
// __________ .__
|
||||
// \______ \ _______ _|__| ______ _ __
|
||||
// | _// __ \ \/ / |/ __ \ \/ \/ /
|
||||
// | | \ ___/\ /| \ ___/\ /
|
||||
// |____|_ /\___ >\_/ |__|\___ >\/\_/
|
||||
// \/ \/ \/
|
||||
|
||||
// ErrReviewNotExist represents a "ReviewNotExist" kind of error.
|
||||
type ErrReviewNotExist struct {
|
||||
ID int64
|
||||
}
|
||||
|
||||
// IsErrReviewNotExist checks if an error is a ErrReviewNotExist.
|
||||
func IsErrReviewNotExist(err error) bool {
|
||||
_, ok := err.(ErrReviewNotExist)
|
||||
return ok
|
||||
}
|
||||
|
||||
func (err ErrReviewNotExist) Error() string {
|
||||
return fmt.Sprintf("review does not exist [id: %d]", err.ID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue