1 17 package org.apache.ldap.server.db; 18 19 20 import javax.naming.NamingException ; 21 22 23 29 public class IndexNotFoundException 30 extends NamingException 31 { 32 private static final long serialVersionUID = 3906088970608981815L; 33 34 35 private final String indexName; 36 37 38 43 public IndexNotFoundException( String indexName ) 44 { 45 super( "Cannot efficiently search the DIB w/o an index on attribute " 46 + indexName + "\n. To allow such searches please contact the " 47 + "directory\nadministrator to create the index or to enable " 48 + "referrals on searches using these\nattributes to a replica with " 49 + "the required set of indices." ); 50 this.indexName = indexName; 51 } 52 53 54 60 public IndexNotFoundException( String message, String indexName ) 61 { 62 super( message ); 63 this.indexName = indexName; 64 } 65 66 67 75 public IndexNotFoundException( String message, String indexName, 76 Throwable rootCause ) 77 { 78 this( message, indexName ); 79 setRootCause( rootCause ); 80 } 81 82 83 88 public String getIndexName() 89 { 90 return indexName; 91 } 92 } 93 | Popular Tags |