| 1 | // This software is released into the Public Domain. See copying.txt for details. |
| 2 | package org.openstreetmap.osmosis.core; |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * The root of the unchecked exception hierarchy for the application. All typed |
| 7 | * runtime exceptions subclass this exception. |
| 8 | * |
| 9 | * @author Brett Henderson |
| 10 | */ |
| 11 | public class OsmosisRuntimeException extends RuntimeException { |
| 12 | |
| 13 | private static final long serialVersionUID = 1L; |
| 14 | |
| 15 | |
| 16 | /** |
| 17 | * Constructs a new exception with <code>null</code> as its detail message. |
| 18 | */ |
| 19 | public OsmosisRuntimeException() { |
| 20 | super(); |
| 21 | } |
| 22 | |
| 23 | |
| 24 | /** |
| 25 | * Constructs a new exception with the specified detail message. The |
| 26 | * cause is not initialized, and may subsequently be initialized by |
| 27 | * a call to {@link #initCause}. |
| 28 | * |
| 29 | * @param message the detail message. |
| 30 | */ |
| 31 | public OsmosisRuntimeException(String message) { |
| 32 | super(message); |
| 33 | } |
| 34 | |
| 35 | |
| 36 | /** |
| 37 | * Constructs a new exception with the specified cause and a detail |
| 38 | * message of <tt>(cause==null ? null : cause.toString())</tt> (which |
| 39 | * typically contains the class and detail message of <tt>cause</tt>). |
| 40 | * |
| 41 | * @param cause the cause. |
| 42 | */ |
| 43 | public OsmosisRuntimeException(Throwable cause) { |
| 44 | super(cause); |
| 45 | } |
| 46 | |
| 47 | |
| 48 | /** |
| 49 | * Constructs a new exception with the specified detail message and |
| 50 | * cause. |
| 51 | * |
| 52 | * @param message the detail message. |
| 53 | * @param cause the cause. |
| 54 | */ |
| 55 | public OsmosisRuntimeException(String message, Throwable cause) { |
| 56 | super(message, cause); |
| 57 | } |
| 58 | } |