mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
614 B
36 lines
614 B
// Copyright (c) 2013 GPMGo Members. All rights reserved. |
|
// Use of this source code is governed by a MIT-style |
|
// license that can be found in the LICENSE file. |
|
|
|
package doc |
|
|
|
import ( |
|
"errors" |
|
) |
|
|
|
var ( |
|
errNotModified = errors.New("package not modified") |
|
errUpdateTimeout = errors.New("update timeout") |
|
) |
|
|
|
type NotFoundError struct { |
|
Message string |
|
} |
|
|
|
func (e NotFoundError) Error() string { |
|
return e.Message |
|
} |
|
|
|
func isNotFound(err error) bool { |
|
_, ok := err.(NotFoundError) |
|
return ok |
|
} |
|
|
|
type RemoteError struct { |
|
Host string |
|
err error |
|
} |
|
|
|
func (e *RemoteError) Error() string { |
|
return e.err.Error() |
|
}
|
|
|