hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/errors.json
{
"name": "hydra.core.errors",
"metadata": {"description": "Top-level error types for the Hydra kernel", "comments": [], "seeAlso": [], "provisions": []},
"dependencies": [
{"module": "hydra.core.error.checking"},
{"module": "hydra.core.error.model"},
{"module": "hydra.core.model"},
{"module": "hydra.core.paths"}],
"definitions": [
{
"type": {
"name": "hydra.core.errors.DecodingError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {"wrap": {"literal": "string"}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An error that occurred during decoding of a term"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.EmptyListError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": "unit",
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An empty list was encountered where a non-empty list was required"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.Error",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"union": [
{
"name": "checking",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.checking.CheckingError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A type checking error"}}}]}}}},
{
"name": "decoding",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.DecodingError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An error that occurred during decoding of a term"}}}]}}}},
{
"name": "duplicateBinding",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.DuplicateBindingError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A duplicate binding name error"}}}]}}}},
{
"name": "duplicateField",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.DuplicateFieldError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A duplicate field name error"}}}]}}}},
{
"name": "extraction",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.ExtractionError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An error that occurred while extracting a value from a term"}}}]}}}},
{
"name": "inference",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.InferenceError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A type inference error"}}}]}}}},
{
"name": "invalidLiteral",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.InvalidLiteralError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A literal value validation error"}}}]}}}},
{
"name": "other",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.OtherError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Any other error"}}}]}}}},
{
"name": "resolution",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.ResolutionError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A name-resolution error"}}}]}}}},
{
"name": "undefinedField",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.UndefinedFieldError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A reference to an undefined field"}}}]}}}},
{
"name": "undefinedTermVariable",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.UndefinedTermVariableError"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A reference to an undefined term variable"}}}]}}}},
{
"name": "untypedTermVariable",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.UntypedTermVariableError"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A term variable whose type is not known"}}}]}}}},
{
"name": "unexpectedTermVariant",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.UnexpectedTermVariantError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An unexpected term variant"}}}]}}}},
{
"name": "unexpectedTypeVariant",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.model.UnexpectedTypeVariantError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An unexpected type variant"}}}]}}}},
{
"name": "unification",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.UnificationError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A type unification error"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An error of any kind, with kernel errors particularly differentiated"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.ExtractionError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"union": [
{
"name": "emptyList",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.EmptyListError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An empty list was encountered where a non-empty list was required"}}}]}}}},
{
"name": "multipleBindings",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.MultipleBindingsError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "Multiple let bindings were found with the same name"}}}]}}}},
{
"name": "multipleFields",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.MultipleFieldsError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "Multiple record fields were found with the same field name"}}}]}}}},
{
"name": "noMatchingField",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.NoMatchingFieldError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "No field with the expected name was found in a record"}}}]}}}},
{
"name": "noSuchBinding",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.NoSuchBindingError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "No let binding with the expected name was found"}}}]}}}},
{
"name": "notEnoughCases",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.NotEnoughCasesError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A case statement did not contain enough cases to match the target"}}}]}}}},
{
"name": "unexpectedShape",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.UnexpectedShapeError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A term, type, literal, or other value had an unexpected shape"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An error that occurred while extracting a typed value from a term"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.InferenceError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"union": [
{
"name": "checking",
"type": {
"annotated": {
"body": {"variable": "hydra.core.error.checking.CheckingError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A type checking error encountered during inference"}}}]}}}},
{
"name": "other",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.OtherInferenceError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {
"literal": {
"string": "A generic inference error carrying a message and a subterm path. Placeholder arm; sites should migrate to typed variants."}}}]}}}},
{
"name": "unification",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.UnificationInferenceError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A unification failure encountered while inferring types"}}}]}}}}]},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An error that occurred during type inference"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.MultipleBindingsError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "name",
"type": {
"annotated": {
"body": {"variable": "hydra.core.model.Name"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The binding name which was duplicated"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "Multiple let bindings with the same name were found"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.MultipleFieldsError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "fieldName",
"type": {
"annotated": {
"body": {"variable": "hydra.core.model.Name"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The field name which appeared more than once"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "Multiple fields with the same name were found in a record"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.NoMatchingFieldError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "fieldName",
"type": {
"annotated": {
"body": {"variable": "hydra.core.model.Name"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The field name which was not found"}}}]}}}}]},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "No field with the expected name was present"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.NoSuchBindingError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "name",
"type": {
"annotated": {
"body": {"variable": "hydra.core.model.Name"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The binding name which was not found"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "No let binding with the expected name was present"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.NoSuchPrimitiveError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "name",
"type": {
"annotated": {
"body": {"variable": "hydra.core.model.Name"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The primitive name which was not found"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "No primitive function with the expected name was registered in the graph"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.NotEnoughCasesError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": "unit",
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A case statement was missing a case for the requested variant"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.OtherError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {"wrap": {"literal": "string"}},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Any other error"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.OtherInferenceError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "path",
"type": {
"annotated": {
"body": {"variable": "hydra.core.paths.SubtermPath"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "The subterm path at which the error was observed"}}}]}}}},
{
"name": "message",
"type": {
"annotated": {
"body": {"literal": "string"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A human-readable error message"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A generic inference error: message + subterm path"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.OtherResolutionError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {"wrap": {"literal": "string"}},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A generic resolution error: message"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.ResolutionError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"union": [
{
"name": "noSuchBinding",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.NoSuchBindingError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "No binding with the expected name was found in the graph"}}}]}}}},
{
"name": "noSuchPrimitive",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.NoSuchPrimitiveError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "No primitive function with the expected name was found in the graph"}}}]}}}},
{
"name": "noMatchingField",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.NoMatchingFieldError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "No field with the expected name was present in a record or case statement"}}}]}}}},
{
"name": "other",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.OtherResolutionError"},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "A generic resolution error carrying a message"}}}]}}}},
{
"name": "unexpectedShape",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.UnexpectedShapeError"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A term had a shape other than the one expected (e.g. a record, an injection)"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "An error that occurred while resolving a name, primitive, or record/union shape in a graph"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.UnexpectedShapeError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "expected",
"type": {
"annotated": {
"body": {"literal": "string"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A description of the expected shape"}}}]}}}},
{
"name": "actual",
"type": {
"annotated": {
"body": {"literal": "string"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A description of the shape actually encountered"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A term, type, literal, or related value had a shape other than the one expected"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.UnificationError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "leftType",
"type": {
"annotated": {
"body": {"variable": "hydra.core.model.Type"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand type in the unification"}}}]}}}},
{
"name": "rightType",
"type": {
"annotated": {
"body": {"variable": "hydra.core.model.Type"},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand type in the unification"}}}]}}}},
{
"name": "message",
"type": {
"annotated": {
"body": {"literal": "string"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A human-readable error message"}}}]}}}}]},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "An error that occurred during type unification"}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.errors.UnificationInferenceError",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "path",
"type": {
"annotated": {
"body": {"variable": "hydra.core.paths.SubtermPath"},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "The subterm path at which the unification failure was observed"}}}]}}}},
{
"name": "cause",
"type": {
"annotated": {
"body": {"variable": "hydra.core.errors.UnificationError"},
"annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The underlying unification error"}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "A unification failure at a specific subterm locus during inference"}}}]}}},
"constraints": []}}}]}