Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
acede980
Commit
acede980
authored
Mar 22, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工具类
parent
98e3475b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
CheckerHelper.java
.../main/java/com/yanzuoguang/util/helper/CheckerHelper.java
+13
-2
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/CheckerHelper.java
View file @
acede980
package
com
.
yanzuoguang
.
util
.
helper
;
import
com.yanzuoguang.util.contants.ResultConstants
;
import
com.yanzuoguang.util.exception.CodeException
;
import
java.text.ParseException
;
...
...
@@ -261,10 +262,20 @@ public final class CheckerHelper {
/**
* 检测结果是否异常
*/
public
void
checkException
()
{
public
CheckerHelper
checkException
()
{
return
checkException
(
null
);
}
/**
* 检测结果是否异常
*
* @param target 目标数据类
*/
public
CheckerHelper
checkException
(
Object
target
)
{
if
(!
StringHelper
.
isEmpty
(
this
.
checkResult
))
{
throw
new
CodeException
(
this
.
checkResul
t
);
throw
new
CodeException
(
ResultConstants
.
PARAM_INVALID
,
this
.
checkResult
,
targe
t
);
}
return
this
;
}
/**
...
...
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