001/* 002 * ModeShape (http://www.modeshape.org) 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.modeshape.common; 017 018/** 019 * A generic {@link RuntimeException runtime exception} representing a catastrophic and/or unrecoverable failure of the system. 020 */ 021public class SystemFailureException extends RuntimeException { 022 023 /** 024 */ 025 private static final long serialVersionUID = 8281373010920861138L; 026 027 /** 028 * Construct a system failure exception with no message. 029 */ 030 public SystemFailureException() { 031 } 032 033 /** 034 * Construct a system failure exception with a single message. 035 * 036 * @param message the message describing the failure 037 */ 038 public SystemFailureException( String message ) { 039 super(message); 040 041 } 042 043 /** 044 * Construct a system failure exception with another exception that is the cause of the failure. 045 * 046 * @param cause the original cause of the failure 047 */ 048 public SystemFailureException( Throwable cause ) { 049 super(cause); 050 051 } 052 053 /** 054 * Construct a system failure exception with a single message and another exception that is the cause of the failure. 055 * 056 * @param message the message describing the failure 057 * @param cause the original cause of the failure 058 */ 059 public SystemFailureException( String message, 060 Throwable cause ) { 061 super(message, cause); 062 063 } 064 065}