note description: "Event severity constants" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class EV_THREAD_SEVERITY_CONSTANTS feature -- Access Information: INTEGER = 1 -- Informational event Warning: INTEGER = 2 -- Warning event, could potentially be a problem Error: INTEGER = 3 -- Error event, something bad happened Stop: INTEGER = 4 -- Stop event, stop processing feature -- Status Report is_valid_severity (a_severity: INTEGER): BOOLEAN -- Is `a_severity' a valid severity? do Result := a_severity = Information or a_severity = Warning or a_severity = Error or a_severity = Stop ensure definition: Result = (a_severity = Information or a_severity = Warning or a_severity = Error or a_severity = Stop) end invariant valid_information_severity: is_valid_severity (Information) valid_warning_severity: is_valid_severity (Warning) valid_error_severity: is_valid_severity (Error) valid_stop_severity: is_valid_severity (Stop) note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" 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 EV_THREAD_SEVERITY_CONSTANTS