mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
add error handle; SizeT
This commit is contained in:
1 parent
de55943194
commit
d46b3c15cd
4 files changed
+76
-199
No files matched your search
@@ -155,6 +155,15 @@ public class VlInt {
|
||||
this.size = sizeT.size();
|
||||
}
|
||||
|
||||
public VlInt(VlInt vlInt){
|
||||
if(!vlInt.isInitial()){
|
||||
throw new Error("VlInt vlInt: The vlInt is invalid, it should be initial.");
|
||||
}
|
||||
this.VlIntBytes=vlInt.getVlIntBytes();
|
||||
this.VlIntValue=vlInt.getVlIntValue();
|
||||
this.size = vlInt.size();
|
||||
}
|
||||
|
||||
public VlInt(int i){
|
||||
this.VlIntValue=BigInteger.valueOf(i);
|
||||
if(!isValidVlIntValue(this.VlIntValue)){
|
||||
|
||||
Reference in new issue
Block a user