public class ResourceWarning extends ResourceException
Constructor and Description |
---|
ResourceWarning()
Create a warning
|
ResourceWarning(String reason)
Create a warning with a reason.
|
ResourceWarning(String reason,
String errorCode)
Create a warning with a reason and an errorCode.
|
ResourceWarning(String reason,
Throwable throwable)
Create a warning with a reason and an error.
|
ResourceWarning(Throwable throwable)
Create a warning with an error.
|
Modifier and Type | Method and Description |
---|---|
ResourceWarning |
getLinkedWarning()
Deprecated.
use getCause()
|
void |
setLinkedWarning(ResourceWarning linkedWarning)
Deprecated.
use initCause()
|
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResourceWarning()
public ResourceWarning(String reason)
public ResourceWarning(String reason, String errorCode)
public ResourceWarning(String reason, Throwable throwable)
reason
- the reasonthrowable
- the errorpublic ResourceWarning(Throwable throwable)
throwable
- the errorpublic void setLinkedWarning(ResourceWarning linkedWarning)
public ResourceWarning getLinkedWarning()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.