public class UniqueResourceException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
resourceDescription
The resource description.
|
private java.lang.String |
resourceName
The resource name.
|
private static long |
serialVersionUID
The serialVersionUID.
|
private java.util.List<java.net.URL> |
urls
The urls.
|
| Constructor and Description |
|---|
UniqueResourceException(java.lang.String resourceName,
java.util.List<java.net.URL> urls,
java.lang.String resourceDescription)
Instantiates a new unique resource exception.
|
UniqueResourceException(java.lang.String resourceName,
java.lang.String resourceDescription)
Instantiates a new unique resource exception.
|
UniqueResourceException(java.lang.String resourceName,
java.net.URL first,
java.util.Enumeration<java.net.URL> urlEnum,
java.lang.String resourceDescription)
Instantiates a new unique resource exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage() |
java.lang.String |
getResourceName()
Gets the resource name.
|
java.util.List<java.net.URL> |
getUrls()
Gets the URLs.
|
private static java.util.List<java.net.URL> |
toList(java.net.URL first,
java.util.Enumeration<java.net.URL> urlEnum) |
private static final long serialVersionUID
private final java.lang.String resourceName
private final java.util.List<java.net.URL> urls
private final java.lang.String resourceDescription
public UniqueResourceException(java.lang.String resourceName,
java.lang.String resourceDescription)
resourceName - the resource nameresourceDescription - the resource descriptionpublic UniqueResourceException(java.lang.String resourceName,
java.util.List<java.net.URL> urls,
java.lang.String resourceDescription)
resourceName - the resource nameurls - the URLsresourceDescription - the resource descriptionpublic UniqueResourceException(java.lang.String resourceName,
java.net.URL first,
java.util.Enumeration<java.net.URL> urlEnum,
java.lang.String resourceDescription)
resourceName - the resource namefirst - the firsturlEnum - the enum with URLsresourceDescription - the resource descriptionprivate static java.util.List<java.net.URL> toList(java.net.URL first,
java.util.Enumeration<java.net.URL> urlEnum)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getResourceName()
public java.util.List<java.net.URL> getUrls()