Informix Error -4125: Not defined/declared as a member in the class hierarchy "name".
Cause and resolution
Not defined/declared as a member in the class hierarchy "name".
The element indicated is either not declared, or is declared but not defined, as a member of the class hierarchy "name."
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4125 fires when an element is referenced as a member of a class hierarchy but is either not declared at all, or declared without being defined, anywhere in that hierarchy — per the official guidance, both cases produce this error.
- The element is not declared anywhere in the named class hierarchy, per the official guidance — the first named case.
- The element is declared but never defined, per the official guidance — the second named case.
Solutions / Resolution
- Check the spelling of the member name, and confirm it's both declared and defined somewhere in the class hierarchy.
Examples
A member declared but not defined
CLASS Order
FUNCTION save() RETURNING INTEGER
-- no matching FUNCTION save() ... END FUNCTION definition anywhere
END CLASS
Corrected
CLASS Order
FUNCTION save() RETURNING INTEGER
RETURN 0
END FUNCTION
END CLASS
Diagnostic Checks
- Check the class hierarchy for both a declaration and a matching definition of the referenced member.
Related Errors / Related Topics
- -4044 — "Member "name" not defined in class "class"." A closely related member-access error, about a single class rather than the whole class hierarchy.
A member is missing a declaration or definition somewhere in the class hierarchy — check both.