org.apache.directory.api.ldap.schemaextractor
Class UniqueResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.directory.api.ldap.schemaextractor.UniqueResourceException
All Implemented Interfaces:
Serializable

public class UniqueResourceException
extends RuntimeException

Exception for when we detect more than one unqiue schema LDIF file resource on the classpath.

Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
UniqueResourceException(String resourceName, List<URL> urls, String resourceDescription)
          Instantiates a new unique resource exception.
UniqueResourceException(String resourceName, String resourceDescription)
          Instantiates a new unique resource exception.
UniqueResourceException(String resourceName, URL first, Enumeration<URL> urlEnum, String resourceDescription)
          Instantiates a new unique resource exception.
 
Method Summary
 String getMessage()
          
 String getResourceName()
          Gets the resource name.
 List<URL> getUrls()
          Gets the URLs.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniqueResourceException

public UniqueResourceException(String resourceName,
                               String resourceDescription)
Instantiates a new unique resource exception.

Parameters:
resourceName - the resource name
resourceDescription - the resource description

UniqueResourceException

public UniqueResourceException(String resourceName,
                               List<URL> urls,
                               String resourceDescription)
Instantiates a new unique resource exception.

Parameters:
resourceName - the resource name
urls - the URLs
resourceDescription - the resource description

UniqueResourceException

public UniqueResourceException(String resourceName,
                               URL first,
                               Enumeration<URL> urlEnum,
                               String resourceDescription)
Instantiates a new unique resource exception.

Parameters:
resourceName - the resource name
first - the first
urlEnum - the enum with URLs
resourceDescription - the resource description
Method Detail

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable

getResourceName

public String getResourceName()
Gets the resource name.

Returns:
the resource name

getUrls

public List<URL> getUrls()
Gets the URLs.

Returns:
the URLs


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.