package acgtk
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=5d380a947658fb1201895cb4cb449b1f60f54914c563e85181d628a89f045c1dd7b5b2226bb7865dd090f87caa9187e0ea6c7a4ee3dc3dda340d404c4e76c7c2
doc/acgtk.scripting/Scripting/Errors/Script_l/index.html
Module Errors.Script_l
Source
This module contains the type for other script errors.
type t =
| NoSignatureType of string
(*
*)NoSignatureType ty
is raised when a typety
is used without signature to interpret it.| NoSignatureTerm
| WrongSignature of string * string
| OnlyLexicon of string
| ArgumentMissing of string * string
| DifferentSig of string * (AcgData.Signature.Data_Signature.t * AcgData.Signature.Data_Signature.t) option
(*
*)DifferentSig (var, Some (sig1, sig2))
is raised when a type variable is used in at least two contexts with different signaturessig1
andsig2
.| AlreadyExistingFun of string
(*
*)AlreadyExistingFun func
when a functionfunc
is defined with a name already used.| UnusedVariable of string
(*
*)UnusedVariable var
is raised when a function is defined with a unused variablevar
as paramenter.| UnknownFunction of string
(*
*)UnknownFunction func
is raised when an unknown functionfunc
is called.| UnknownParameter of string * string
(*
*)UnknownParameter (func, param)
when a functionfunc
is called with an unknown parameterparam
.| ParameterRepeated of string * string
(*
*)ParameterRepeated (func, param)
is raised when a functionfunc
is called with at least twice the same parameterparam
.| TooMuchArgs of string
(*
*)TooMuchArgs func
is raised when a function is called with too much unnamed arguments.| NoLastValue
(*
*)NoLastValue
is raised when the functionlast
is called before executing a command returning a value.| InvalidSpecialFuncCall of string
(*
*)InvalidSpecialFuncCall func
is raised when a special functionfunc
is used in a command with multiple functions.| MissingFuncTermList of string
(*
*)MissingFuncTermList func
is raised when a functionfunc
which needs terms as input is called without terms.| TermListNotAllowed of string
(*
*)TermListNotAllowed func
is raised when a functionfunc
which does not take terms as input is called with terms.| EmptyPipe of string
(*
*)EmptyPipe func
is raised when a functionfunc
is called with an invalid pipe.| EmptyHelp of string
(*
*)EmptyHelp func_preffix
is raised when the function "help" is called with an argumentfunc_preffix
that matches no functions of the environment| Other
(*
*)Other
is for an unknown error.