001 /* 002 * $Id: ErrorLevel.java 1557 2006-11-10 17:02:53Z rbair $ 003 * 004 * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 005 * Santa Clara, California 95054, U.S.A. All rights reserved. 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 * 012 * This library is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * You should have received a copy of the GNU Lesser General Public 018 * License along with this library; if not, write to the Free Software 019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 020 */ 021 022 package org.jdesktop.swingx.error; 023 024 import java.util.logging.Level; 025 026 /** 027 * <p>Extends {@link java.util.logging.Level} adding the <code>FATAL</code> error level. 028 * Fatal errors are those unrecoverable errors that must result in the termination 029 * of the application.</p> 030 * 031 * @status REVIEWED 032 * @author rbair 033 */ 034 public class ErrorLevel extends Level { 035 /** 036 * FATAL is a message level indicating a catastrophic failure that should 037 * result in the immediate termination of the application. 038 * <p> 039 * In general FATAL messages should describe events that are 040 * of considerable critical and which will prevent 041 * program execution. They should be reasonably intelligible 042 * to end users and to system administrators. 043 * This level is initialized to <CODE>1100</CODE>. 044 */ 045 public static final ErrorLevel FATAL = new ErrorLevel("FATAL", 1100); 046 047 /** Creates a new instance of ErrorLevel */ 048 protected ErrorLevel(String name, int value) { 049 super(name, value); 050 } 051 }