directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r307391 - /directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/util/IntegerDecoder.java
Date Sun, 09 Oct 2005 11:00:09 GMT
Author: elecharny
Date: Sun Oct  9 04:00:04 2005
New Revision: 307391

URL: http://svn.apache.org/viewcvs?rev=307391&view=rev
Log:
Methods throw an IntegerDecoderException instead of DecoderException

Modified:
    directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/util/IntegerDecoder.java

Modified: directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/util/IntegerDecoder.java
URL: http://svn.apache.org/viewcvs/directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/util/IntegerDecoder.java?rev=307391&r1=307390&r2=307391&view=diff
==============================================================================
--- directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/util/IntegerDecoder.java
(original)
+++ directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/util/IntegerDecoder.java
Sun Oct  9 04:00:04 2005
@@ -40,9 +40,9 @@
      *
      * @return An integer
      *
-     * @throws DecoderException Thrown if the byte stream does not contains an integer
+     * @throws IntegerDecoderException Thrown if the byte stream does not contains an integer
      */
-    public static int parse( Value value, int min, int max ) throws DecoderException
+    public static int parse( Value value, int min, int max ) throws IntegerDecoderException
     {
 
         int    result = 0;
@@ -51,7 +51,7 @@
 
         if ( bytes.length > 4 )
         {
-            throw new DecoderException(
+            throw new IntegerDecoderException(
                 "The value is more than 4 bytes long. This is not allowed for an integer"
);
         }
 
@@ -71,7 +71,7 @@
         }
         else
         {
-            throw new DecoderException( "The value is not in the range [" + min + ", " +
max + "]" );
+            throw new IntegerDecoderException( "The value is not in the range [" + min +
", " + max + "]" );
         }
     }
     
@@ -82,9 +82,9 @@
      *
      * @return An integer
      *
-     * @throws DecoderException Thrown if the byte stream does not contains an integer
+     * @throws IntegerDecoderException Thrown if the byte stream does not contains an integer
      */
-    public static int parse( Value value ) throws DecoderException
+    public static int parse( Value value ) throws IntegerDecoderException
     {
     	return parse( value, Integer.MIN_VALUE, Integer.MAX_VALUE ); 
     }



Mime
View raw message