mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
error handle to all: EncoderException
This commit is contained in:
1 parent
5fc080ca6c
commit
8cf6ed24c9
34 files changed
+700
-233
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# Exception
|
||||
当异常没有那么严重,属于程序自己可以处理的情形时,应当把这个异常抛出,然后交由上层方法去捕获并处理该异常。
|
||||
如果需要根据返回值去判断是否发生异常,那么,
|
||||
1. 当这个返回值正常情况下只能是正整数时,异常发生则返回-1;
|
||||
2. 当这个返回值正常情况下只能是正整数或0时,异常发生则返回-1;
|
||||
|
||||
# Error
|
||||
当异常属于不可处理的错误,应当直接抛出,提醒用户该错误发生的位置。
|
||||
|
||||
|
||||
Reference in new issue
Block a user