public class DuplicateResourceException extends ApiException
Constructor and Description |
---|
DuplicateResourceException(String message)
Constructor
|
DuplicateResourceException(String resource,
String message)
Constructor
|
DuplicateResourceException(String resource,
String message,
Throwable cause)
Constructor
|
DuplicateResourceException(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
resource() |
fillInStackTrace
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DuplicateResourceException(String message)
message
- the exception's messagepublic DuplicateResourceException(String message, Throwable cause)
message
- the exception's messagecause
- the exception's causepublic DuplicateResourceException(String resource, String message)
resource
- the (potentially null) resource that was referred to twicemessage
- the exception's messagepublic String resource()