indexing description: "Error handler that manages warning and error messages." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision $" class ERROR_HANDLER create {SHARED_ERROR_HANDLER} make feature {NONE} -- Initialization make is -- Initialization do create error_list.make create warning_list.make end feature -- Properties error_list: LINKED_LIST [ERROR] -- Error list warning_list: LINKED_LIST [SYNTAX_WARNING] -- Warning list feature -- Error handling primitives insert_error (e: ERROR) is -- Insert `e' in `error_list'. require good_argument: e /= Void do error_list.extend (e) error_list.finish end insert_warning (w: SYNTAX_WARNING) is -- Insert `w' in `warning_list'. require good_argument: w /= Void do warning_list.extend (w) warning_list.finish end raise_error is do end wipe_out is -- Empty `error_list' and `warning_list'. do error_list.wipe_out warning_list.wipe_out end feature -- Status has_error: BOOLEAN is -- Has error handler detected an error so far? do Result := not error_list.is_empty end has_warning: BOOLEAN is -- Has error handler detected a warning so far? do Result := not warning_list.is_empty end indexing copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class ERROR_HANDLER