geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r695141 - in /geronimo/gshell/trunk/gshell-support/gshell-i18n/src: main/java/org/apache/geronimo/gshell/i18n/ test/java/org/apache/geronimo/gshell/i18n/
Date Sun, 14 Sep 2008 08:10:59 GMT
Author: jdillon
Date: Sun Sep 14 01:10:59 2008
New Revision: 695141

URL: http://svn.apache.org/viewvc?rev=695141&view=rev
Log:
Move up exception, tidy

Added:
    geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java
  (contents, props changed)
      - copied, changed from r695140, geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/MessageSource.java
Modified:
    geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSource.java
    geronimo/gshell/trunk/gshell-support/gshell-i18n/src/test/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSourceTest.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSource.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSource.java?rev=695141&r1=695140&r2=695141&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSource.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSource.java
Sun Sep 14 01:10:59 2008
@@ -87,20 +87,4 @@
 
         return MessageFormat.format(pattern, args);
     }
-
-    //
-    // ResourceNotFoundException
-    //
-
-    public class ResourceNotFoundException
-        extends RuntimeException
-    {
-        public ResourceNotFoundException(final String code) {
-            //
-            // TODO: Include the resource bundle names
-            //
-            
-            super("Resource not found for code: " + code);
-        }
-    }
 }

Copied: geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java
(from r695140, geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/MessageSource.java)
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java?p2=geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java&p1=geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/MessageSource.java&r1=695140&r2=695141&rev=695141&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/MessageSource.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java
Sun Sep 14 01:10:59 2008
@@ -20,13 +20,14 @@
 package org.apache.geronimo.gshell.i18n;
 
 /**
- * Provides simple access to i18n messages.
+ * Thrown to indicate a required resource was not found.
  *
  * @version $Rev$ $Date$
  */
-public interface MessageSource
+public class ResourceNotFoundException
+    extends RuntimeException
 {
-    String getMessage(String code);
-
-    String format(String code, Object... args);
-}
+    public ResourceNotFoundException(final String code) {
+        super("Resource not found for code: " + code);
+    }
+}
\ No newline at end of file

Propchange: geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java
------------------------------------------------------------------------------
    svn:mergeinfo = 

Propchange: geronimo/gshell/trunk/gshell-support/gshell-i18n/src/main/java/org/apache/geronimo/gshell/i18n/ResourceNotFoundException.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/gshell/trunk/gshell-support/gshell-i18n/src/test/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSourceTest.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-i18n/src/test/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSourceTest.java?rev=695141&r1=695140&r2=695141&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-i18n/src/test/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSourceTest.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-i18n/src/test/java/org/apache/geronimo/gshell/i18n/ResourceBundleMessageSourceTest.java
Sun Sep 14 01:10:59 2008
@@ -24,8 +24,7 @@
 /**
  * Unit tests for the {@link ResourceBundleMessageSource} class.
  *
- * @version $Id$
- * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
+ * @version $Rev$ $Date$
  */
 public class ResourceBundleMessageSourceTest
     extends TestCase
@@ -54,6 +53,6 @@
         try {
             messages.getMessage("no-such-code");
         }
-        catch (ResourceBundleMessageSource.ResourceNotFoundException expected) {}
+        catch (ResourceNotFoundException expected) {}
     }
 }
\ No newline at end of file



Mime
View raw message