MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / create_validation_error

Function create_validation_error

aiscript-vm/src/builtins/error.rs:10–13  ·  view source on GitHub ↗
(ctx: Context)

Source from the content-addressed store, hash-verified

8use std::collections::HashMap;
9
10pub fn create_validation_error(ctx: Context) -> GcRefLock<'_, Class> {
11 let error_class = Class::new(ctx.intern(b"ValidationError!"));
12 Gc::new(&ctx, RefLock::new(error_class))
13}
14
15// Helper to create error info object
16pub fn create_error_info<'gc>(

Callers 2

init_stdlibMethod · 0.85
validate_argsMethod · 0.85

Calls 1

internMethod · 0.45

Tested by

no test coverage detected