Commit e8ce7b1a by zhengqiuyun86

数组差集算法

parent cf58aa89
......@@ -7,7 +7,7 @@ import (
)
func ThrowsErr(err error) {
panic[error](err)
panic(err)
}
func ThrowsValid(err error, r interface{}) {
......@@ -16,7 +16,7 @@ func ThrowsValid(err error, r interface{}) {
case validator.ValidationErrors:
e := (err).(validator.ValidationErrors)
errMsg := getError(e, r)
panic[DError](DError{Code: "REQUEST_PARAMS_ERR", Err: errMsg})
panic(DError{Code: "REQUEST_PARAMS_ERR", Err: errMsg})
break
default:
ThrowsErr(err)
......@@ -53,7 +53,7 @@ type DError struct {
}
func ThrowsErrS(code, err string) {
panic[DError](DError{Code: code, Err: err})
panic(DError{Code: code, Err: err})
}
func AssertThrowableErr(throwable bool, err error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment