// Copyright 2017 The Gogs Authors. All rights reserved.// Use of this source code is governed by a MIT-style// license that can be found in the LICENSE file.packageerrorsimport"fmt"typeWebhookNotExiststruct{IDint64}funcIsWebhookNotExist(errerror)bool{_,ok:=err.(WebhookNotExist)returnok}func(errWebhookNotExist)Error()string{returnfmt.Sprintf("webhook does not exist [id: %d]",err.ID)}typeHookTaskNotExiststruct{HookIDint64UUIDstring}funcIsHookTaskNotExist(errerror)bool{_,ok:=err.(HookTaskNotExist)returnok}func(errHookTaskNotExist)Error()string{returnfmt.Sprintf("hook task does not exist [hook_id: %d, uuid: %s]",err.HookID,err.UUID)}