001package org.javasimon; 002 003/** 004 * SimonException is runtime exception thrown in case something goes seriously wrong (class cast or similar). 005 * 006 * @author <a href="mailto:virgo47@gmail.com">Richard "Virgo" Richter</a> 007 */ 008public final class SimonException extends RuntimeException { 009 010 /** 011 * Creates SimonException with the message. 012 * 013 * @param message exception message 014 */ 015 public SimonException(String message) { 016 super(message); 017 } 018 019 /** 020 * Creates SimonException with the chained exception causing this exception. 021 * 022 * @param cause chained exception 023 */ 024 public SimonException(Throwable cause) { 025 super(cause); 026 } 027 028 /** 029 * Creates SimonException with message and the chained exception causing this exception. 030 * 031 * @param message exception message 032 * @param cause chained exception 033 */ 034 public SimonException(String message, Throwable cause) { 035 super(message, cause); 036 } 037}