You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by fe...@apache.org on 2010/10/30 15:56:11 UTC

svn commit: r1029066 - /directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java

Author: felixk
Date: Sat Oct 30 13:56:10 2010
New Revision: 1029066

URL: http://svn.apache.org/viewvc?rev=1029066&view=rev
Log:
error msg

Modified:
    directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java

Modified: directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java?rev=1029066&r1=1029065&r2=1029066&view=diff
==============================================================================
--- directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java (original)
+++ directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java Sat Oct 30 13:56:10 2010
@@ -24,6 +24,7 @@ package org.apache.directory.ldap.client
 import java.util.concurrent.TimeUnit;
 
 import org.apache.directory.ldap.client.api.future.SearchFuture;
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.cursor.AbstractCursor;
 import org.apache.directory.shared.ldap.cursor.InvalidCursorPositionException;
 import org.apache.directory.shared.ldap.cursor.SearchCursor;
@@ -219,7 +220,8 @@ public class SearchCursorImpl extends Ab
      */
     public void after( Response element ) throws Exception
     {
-        throw new UnsupportedOperationException();
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION, getClass().getName()
+            .concat( "." ).concat( "after( Response element )" ) ) );
     }
 
 
@@ -229,7 +231,8 @@ public class SearchCursorImpl extends Ab
      */
     public void afterLast() throws Exception
     {
-        throw new UnsupportedOperationException();
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION, getClass().getName()
+            .concat( "." ).concat( "afterLast()" ) ) );
     }
 
 
@@ -239,7 +242,8 @@ public class SearchCursorImpl extends Ab
      */
     public void before( Response element ) throws Exception
     {
-        throw new UnsupportedOperationException();
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION, getClass().getName()
+            .concat( "." ).concat( "before( Response element )" ) ) );
     }
 
 
@@ -249,7 +253,8 @@ public class SearchCursorImpl extends Ab
      */
     public void beforeFirst() throws Exception
     {
-        throw new UnsupportedOperationException();
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION, getClass().getName()
+            .concat( "." ).concat( "beforeFirst()" ) ) );
     }
 
 
@@ -259,7 +264,8 @@ public class SearchCursorImpl extends Ab
      */
     public boolean first() throws Exception
     {
-        throw new UnsupportedOperationException();
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION, getClass().getName()
+            .concat( "." ).concat( "first()" ) ) );
     }
 
 
@@ -269,7 +275,8 @@ public class SearchCursorImpl extends Ab
      */
     public boolean last() throws Exception
     {
-        throw new UnsupportedOperationException();
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION, getClass().getName()
+            .concat( "." ).concat( "last()" ) ) );
     }
 
 
@@ -279,7 +286,8 @@ public class SearchCursorImpl extends Ab
      */
     public boolean previous() throws Exception
     {
-        throw new UnsupportedOperationException();
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION, getClass().getName()
+            .concat( "." ).concat( "previous()" ) ) );
     }
 
 }