indexing description: "" date: "$Date$" revision: "$Revision $" class VDRS1 inherit EIFFEL_ERROR redefine build_explain, subcode, is_defined end feature -- Properties parent: CLASS_C; -- Parent feature_name: STRING; -- Feature name involved code: STRING is -- Error code once Result := "VDRS" end subcode: INTEGER is 1; feature -- Access is_defined: BOOLEAN is -- Is the error fully defined? do Result := is_class_defined and then parent /= Void and then feature_name /= Void ensure then valid_parent: Result implies parent /= Void; valid_feature_name: Result implies feature_name /= Void end feature -- Output build_explain (st: STRUCTURED_TEXT) is -- Build specific explanation explain for current error -- in `st'. do st.add_string ("Invalid feature name: "); st.add_string (feature_name); st.add_new_line; st.add_string ("In Redefine clause for parent: "); parent.append_name (st); st.add_new_line; end; feature {COMPILER_EXPORTER} set_feature_name (fn: STRING) is -- Assign `fn' to `feature_name'. require valid_fn: fn /= Void do feature_name := fn; end; set_parent (p: CLASS_C) is require valid_p: p /= Void do parent := p end; end -- class VDRS1