Errors
The libraries raise the errors of c0de where they fit and errors of their own, which are constants of the libraries, like c0de_paint/cpaint/CANVAS_LIMIT and c0de_paint/schematics/SCHEMATIC_NOT_FOUND.
CANVAS_LIMIT
Code 1100. A drawing or an operation would set a voxel outside the limits of the settings (canvasMin, canvasMax). Nothing is drawn.
CANVAS_EMPTY
Code 1101. The canvas has no set voxels, so it has no bounds: CANVAS_MIN, CANVAS_MAX, and STYLE_PATTERN with an empty pattern.
NOT_A_PLANE
Code 1102. The points of a flat shape lie on one line, so they don't define a plane.
SCHEMATIC_NOT_FOUND
Code 1103, c0de_paint/schematics and c0de_paint/cpaint. There is no schematic, canvas file or folder with the name in the folder schematics, or the file can't be written there.
SCHEMATIC_INVALID
Code 1104, c0de_paint/schematics and c0de_paint/cpaint. The file is not a schematic of Litematica, Create or Axiom or not a canvas file, is from before Minecraft 1.13, or has no region with the name.
SCHEMATIC_TOO_LARGE
Code 1105, c0de_paint/schematics and c0de_paint/cpaint. The file is larger than maxSchematicSize, or the schematic larger than a canvas.
CLIENT_UNAVAILABLE
Code 1106, c0de_paint/schematics and c0de_paint/cpaint. The player who runs the process is not online, has no c0de paint on the client or doesn't answer within 60 seconds. Processes without such a player (a timer block without owner) can't read or write files.
SCHEMATICS_DISABLED
Code 1107, c0de_paint/schematics and c0de_paint/cpaint. The client of the player doesn't read files (allowSchematics is false) or doesn't write them (allowSchematicWrites is false).
SCHEMATIC_EXISTS
Code 1108, c0de_paint/schematics and c0de_paint/cpaint. EXPORT_SCHEMATIC or SAVE_CANVAS would replace a file that exists, without overwrite TRUE.
Errors of c0de
INVALID_ARGUMENT (309): an argument is wrong, like a weight below 1, an unknown direction or block. PERMISSION_DENIED (311), CHUNK_NOT_LOADED (310), ITEM_MISSING (313) and INVENTORY_FULL (312) come from rendering, as with PLACE_BLOCK and MINE_BLOCK.