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
8f0cae2f
Commit
8f0cae2f
authored
May 20, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将源码打包进jar包
parent
cfb1cba2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ExceptionHelper.java
.../java/com/yanzuoguang/util/exception/ExceptionHelper.java
+10
-10
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/exception/ExceptionHelper.java
View file @
8f0cae2f
...
@@ -14,8 +14,8 @@ public class ExceptionHelper {
...
@@ -14,8 +14,8 @@ public class ExceptionHelper {
/**
/**
* 不跑出异常,记录日常日志
* 不跑出异常,记录日常日志
*
*
* @param cls
* @param cls
错误类型
* @param ex
* @param ex
错误
*/
*/
public
static
void
handleException
(
Class
<?>
cls
,
Throwable
ex
)
{
public
static
void
handleException
(
Class
<?>
cls
,
Throwable
ex
)
{
handleException
(
cls
,
ex
,
null
);
handleException
(
cls
,
ex
,
null
);
...
@@ -35,15 +35,15 @@ public class ExceptionHelper {
...
@@ -35,15 +35,15 @@ public class ExceptionHelper {
/**
/**
* 异常信息输出
* 异常信息输出
*
*
* @param local
* @param local
字符串
* @param start
* @param start
开始位置
* @param end
* @param end
结束位置
* @param
allSize
* @param
length 总长度
* @param str
* @param str
结果
* @throws Exception
* @throws Exception
抛出异常
*/
*/
public
static
void
subStringException
(
String
local
,
int
start
,
int
end
,
int
allSize
,
String
str
)
throws
Exception
{
public
static
void
subStringException
(
String
local
,
int
start
,
int
end
,
int
length
,
String
str
)
throws
Exception
{
String
exception
=
local
+
"/n"
+
"开始:"
+
start
+
" 结束:"
+
end
+
"总长:"
+
allSize
+
"/n"
+
str
;
String
exception
=
local
+
"/n"
+
"开始:"
+
start
+
" 结束:"
+
end
+
"总长:"
+
length
+
"/n"
+
str
;
throw
new
Exception
(
exception
);
throw
new
Exception
(
exception
);
}
}
...
...
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