public class UniqueResourceException extends RuntimeException
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 descriptionpublic String getMessage()
getMessage
in class Throwable
public String getResourceName()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.