Cli.ErrorsThis module defines error-handling functions for the CLI (Command Line Interface) of the interpreter. Each function returns a result type that encapsulates either a successful value or a list of detailed errors.
val invalid_logger_level :
string ->
('a, Ast.Error.detailed_error list) Stdlib.resultinvalid_logger_level level is used to indicate that the provided logger level level is invalid.
val invalid_command :
?errors:Ast.Error.detailed_error list ->
?nearest:string ->
?distance:int ->
string list ->
('a, Ast.Error.detailed_error list) Stdlib.resultinvalid_command ?errors ?nearest ?distance commands is used to indicate that the provided command commands is invalid.
val file_not_exists :
?errors:Ast.Error.detailed_error list ->
string ->
('a, Ast.Error.detailed_error list) Stdlib.resultfile_not_exists ?errors filepath is used to indicate that the specified file filepath does not exist.
val invalid_file_extension :
?errors:Ast.Error.detailed_error list ->
supported:string ->
?got:string ->
unit ->
('a, Ast.Error.detailed_error list) Stdlib.resultinvalid_file_extension ?errors ~supported ?got () is used to indicate that the file has an unsupported extension.