Package hydra.errors
Class ResolutionError
- java.lang.Object
-
- hydra.errors.ResolutionError
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ResolutionError>
- Direct Known Subclasses:
ResolutionError.NoMatchingField,ResolutionError.NoSuchBinding,ResolutionError.NoSuchPrimitive,ResolutionError.Other,ResolutionError.UnexpectedShape
public abstract class ResolutionError extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ResolutionError>
An error that occurred while resolving a name, primitive, or record/union shape in a graph- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResolutionError.NoMatchingFieldNo field with the expected name was present in a record or case statementstatic classResolutionError.NoSuchBindingNo binding with the expected name was found in the graphstatic classResolutionError.NoSuchPrimitiveNo primitive function with the expected name was found in the graphstatic classResolutionError.OtherA generic resolution error carrying a messagestatic interfaceResolutionError.PartialVisitor<R>Partial visitor overResolutionErrorwith a defaultResolutionError.PartialVisitor.otherwise(hydra.errors.ResolutionError)branch.static classResolutionError.UnexpectedShapeA term had a shape other than the one expected (e.g.static interfaceResolutionError.Visitor<R>Visitor overResolutionError.
-
Field Summary
Fields Modifier and Type Field Description static NameNO_MATCHING_FIELDName of thehydra.errors.ResolutionError.noMatchingFieldfield.static NameNO_SUCH_BINDINGName of thehydra.errors.ResolutionError.noSuchBindingfield.static NameNO_SUCH_PRIMITIVEName of thehydra.errors.ResolutionError.noSuchPrimitivefield.static NameOTHERName of thehydra.errors.ResolutionError.otherfield.static NameTYPE_Name of thehydra.errors.ResolutionErrortype.static NameUNEXPECTED_SHAPEName of thehydra.errors.ResolutionError.unexpectedShapefield.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(ResolutionError.Visitor<R> visitor)Dispatch tovisitor.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.errors.ResolutionErrortype.
-
NO_SUCH_BINDING
public static final Name NO_SUCH_BINDING
Name of thehydra.errors.ResolutionError.noSuchBindingfield.
-
NO_SUCH_PRIMITIVE
public static final Name NO_SUCH_PRIMITIVE
Name of thehydra.errors.ResolutionError.noSuchPrimitivefield.
-
NO_MATCHING_FIELD
public static final Name NO_MATCHING_FIELD
Name of thehydra.errors.ResolutionError.noMatchingFieldfield.
-
OTHER
public static final Name OTHER
Name of thehydra.errors.ResolutionError.otherfield.
-
UNEXPECTED_SHAPE
public static final Name UNEXPECTED_SHAPE
Name of thehydra.errors.ResolutionError.unexpectedShapefield.
-
-
Method Detail
-
accept
public abstract <R> R accept(ResolutionError.Visitor<R> visitor)
Dispatch tovisitor.
-
-