File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
convex-core/src/main/java/convex/core/lang Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public CVMLong getPosition(Symbol sym) {
141
141
}
142
142
143
143
/**
144
- * Inner class for less-frequently changing CVM state related to Actor execution
144
+ * Immutable inner class for less-frequently changing CVM state
145
145
* Should save some allocation / GC on average, since it will change less
146
146
* frequently than the surrounding Context and can be cheaply copied by reference.
147
147
*
Original file line number Diff line number Diff line change @@ -38,8 +38,16 @@ public class ErrorValue extends AThrowable {
38
38
private Address address =null ;
39
39
40
40
static {
41
- addDefaultError (ErrorCodes .ARGUMENT ,"Invalid argument value " );
41
+ addDefaultError (ErrorCodes .ARGUMENT ,"Invalid argument" );
42
42
addDefaultError (ErrorCodes .NOBODY ,"Account does not exist" );
43
+ addDefaultError (ErrorCodes .FUNDS ,"Funds not available" );
44
+ addDefaultError (ErrorCodes .JUICE ,"Out of juice" );
45
+ addDefaultError (ErrorCodes .CAST ,"Illegal type cast" );
46
+ addDefaultError (ErrorCodes .ASSERT ,"Assertion failed" );
47
+ addDefaultError (ErrorCodes .ARITY ,"Wrong number of arguments" );
48
+ addDefaultError (ErrorCodes .BOUNDS ,"Out of bounds" );
49
+ addDefaultError (ErrorCodes .TODO ,"Not implemented" );
50
+ addDefaultError (ErrorCodes .MEMORY ,"Out of memory" );
43
51
}
44
52
45
53
private ErrorValue (ACell code , ACell message ) {
You can’t perform that action at this time.
0 commit comments