Class UniqueResourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.directory.api.ldap.schema.extractor.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
Constructors Constructor Description 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.UniqueResourceException(String resourceName, List<URL> urls, String resourceDescription)
Instantiates a new unique resource exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
String
getResourceName()
Gets the resource name.List<URL>
getUrls()
Gets the URLs.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UniqueResourceException
public UniqueResourceException(String resourceName, String resourceDescription)
Instantiates a new unique resource exception.- Parameters:
resourceName
- the resource nameresourceDescription
- the resource description
-
UniqueResourceException
public UniqueResourceException(String resourceName, List<URL> urls, String resourceDescription)
Instantiates a new unique resource exception.- Parameters:
resourceName
- the resource nameurls
- the URLsresourceDescription
- 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 namefirst
- the firsturlEnum
- the enum with URLsresourceDescription
- the resource description
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getResourceName
public String getResourceName()
Gets the resource name.- Returns:
- the resource name
-
-