Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rym-util
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengqiuyun
rym-util
Commits
e8ce7b1a
Commit
e8ce7b1a
authored
Oct 26, 2022
by
zhengqiuyun86
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数组差集算法
parent
cf58aa89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GlobalException.go
exception/GlobalException.go
+3
-3
No files found.
exception/GlobalException.go
View file @
e8ce7b1a
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment