mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
可以在集群中查看待安装节点、并直接安装节点
This commit is contained in:
21
internal/errors/detailed_error.go
Normal file
21
internal/errors/detailed_error.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package errors
|
||||
|
||||
type DetailedError struct {
|
||||
msg string
|
||||
code string
|
||||
}
|
||||
|
||||
func (this *DetailedError) Error() string {
|
||||
return this.msg
|
||||
}
|
||||
|
||||
func (this *DetailedError) Code() string {
|
||||
return this.code
|
||||
}
|
||||
|
||||
func NewDetailedError(code string, error string) *DetailedError {
|
||||
return &DetailedError{
|
||||
msg: error,
|
||||
code: code,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user