Crates.io | leo-errors |
lib.rs | leo-errors |
version | 2.4.1 |
source | src |
created_at | 2022-11-15 03:01:04.774624 |
updated_at | 2024-12-17 19:50:33.060941 |
description | Errors for the Leo programming language |
homepage | https://leo-lang.org |
repository | https://github.com/ProvableHQ/leo |
max_upload_size | |
id | 715416 |
size | 182,915 |
This directory contains the code for the Errors for all the Leo crates.
The errors are inspired by rust
in a few different ways:
The purpose of these errors is such that searching an error in the documentation, or online for help, becomes easier.
The common section of this crate contains a few sub files:
These are the different kinds of errors that are made in this crate. Note that if you want more information about the errors please check the crates documentation or the Error Index. All errors here with the exception of SnarkVM Errors have a 037 prefixed to their error codes.
The errors for the leo-asg
crate. Its error codes will range from 3_000-3_999 and be prefixed with the characters ASG
.
The errors for the leo-ast
crate. Its error codes will range from 2_000-2_999 and be prefixed with the characters AST
.
The errors for the leo-lang
crate. Its error codes will range from 7_000-7_999 and be prefixed with the characters CLI
.
The errors for the leo-compiler
crate. Its error codes will range from 6_000-6_999 and be prefixed with the characters CMP
.
The errors for the leo-imports
crate. Its error codes will range from 4_000-4_999 and be prefixed with the characters IMP
.
The errors for loop unrolling in the leo-passes
crate. Its error codes will range from 9_000-9_999 and be prefixed with the characters LUN
.
The errors for the leo-package
crate. Its error codes will range from 5_000-5_999 and be prefixed with the characters PAK
.
The errors for the leo-parser
crate. Its error codes will range from 0-999 and be prefixed with the characters PAR
.
The errors from SnarkVM that bubble up into Leo in some situations. For right now, they have an exit code of 1. When SnarkVM implements better error codes and messages, we can bubble them up.
The errors related to dependency retrieval in the utils
crate. Its error codes will range from 10_000-10_999 and be prefixed with the characters DEP
.