public class UniqueResourceException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
private String |
resourceDescription
The resource description.
|
private String |
resourceName
The resource name.
|
private static long |
serialVersionUID
The serialVersionUID.
|
private List<URL> |
urls
The urls.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
String |
getResourceName()
Gets the resource name.
|
List<URL> |
getUrls()
Gets the URLs.
|
private static List<URL> |
toList(URL first,
Enumeration<URL> urlEnum) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate static final long serialVersionUID
private final String resourceName
private final String resourceDescription
public UniqueResourceException(String resourceName, String resourceDescription)
resourceName - the resource nameresourceDescription - the resource descriptionpublic UniqueResourceException(String resourceName, List<URL> urls, String resourceDescription)
resourceName - the resource nameurls - the URLsresourceDescription - the resource descriptionpublic UniqueResourceException(String resourceName, URL first, Enumeration<URL> urlEnum, String resourceDescription)
resourceName - the resource namefirst - the firsturlEnum - the enum with URLsresourceDescription - the resource descriptionprivate static List<URL> toList(URL first, Enumeration<URL> urlEnum)
public String getMessage()
getMessage in class Throwablepublic String getResourceName()
Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.