Update to Worldwind release 0.4.1
[worldwind-tracker.git] / gov / nasa / worldwind / formats / nitfs / NITFSRuntimeException.java
blob343103eae81fd049459b6e464509c1c7caf19f43
1 package gov.nasa.worldwind.formats.nitfs;
3 import gov.nasa.worldwind.util.Logging;
4 /*
5 Copyright (C) 2001, 2007 United States Government
6 as represented by the Administrator of the
7 National Aeronautics and Space Administration.
8 All Rights Reserved.
9 */
11 /**
12 * @author Lado Garakanidze
13 * @version $Id: NitfsRuntimeException Mar 31, 2007 7:41:31 AM
15 public final class NITFSRuntimeException extends java.lang.RuntimeException
17 public NITFSRuntimeException()
19 super();
22 public NITFSRuntimeException(String messageID)
24 super(Logging.getMessage(messageID));
25 log(this.getMessage());
28 public NITFSRuntimeException(String messageID, String params)
30 super(Logging.getMessage(messageID) + params);
31 log(this.getMessage());
34 public NITFSRuntimeException(Throwable throwable)
36 super(throwable);
37 log(this.getMessage());
40 public NITFSRuntimeException(String messageID, Throwable throwable)
42 super(Logging.getMessage(messageID), throwable);
43 log(this.getMessage());
46 public NITFSRuntimeException(String messageID, String params, Throwable throwable)
48 super(Logging.getMessage(messageID) + params, throwable);
49 log(this.getMessage());
52 // TODO: Calling the logger from here causes the wrong method to be listed in the log record. Must call the
53 // logger from the site with the problem and generating the exception.
54 private void log(String s)
56 Logging.logger().fine(s);