public class VaultRuntimeException extends RuntimeException implements com.veeva.vault.sdk.infrastructure.core.Origination
Note that the result of the {link Throwable.getMessage()
should not be used to make
programmatic decisions. That value is for informational purposes only and is subject to change.
Constructor and Description |
---|
VaultRuntimeException()
Constructs a new runtime exception with
null as its
detail message. |
VaultRuntimeException(String message)
Constructs a new runtime exception with the specified detail message.
|
VaultRuntimeException(String message,
Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
VaultRuntimeException(Throwable cause)
Constructs a new runtime exception with the specified cause and a
detail message of
(cause==null ? null : cause.toString()) ,
which typically contains the class and detail message of
cause . |
Modifier and Type | Method and Description |
---|---|
boolean |
isOriginatedInThisProcess()
Returns whether or not this object originated in this process.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public VaultRuntimeException()
null
as its
detail message. The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable)
.public VaultRuntimeException(String message)
Throwable.initCause(java.lang.Throwable)
.message
- detail message, saved for later retrieval with Throwable.getMessage()
public VaultRuntimeException(String message, Throwable cause)
Note that the detail message associated with
cause
is not automatically incorporated in
this runtime exception's detail message.
message
- the detail message, saved for later retrieval with Throwable.getMessage()
cause
- the cause, saved for later retrieval with
Throwable.getCause()
. A null
value
indicates that the cause is nonexistent or unknown.public VaultRuntimeException(Throwable cause)
(cause==null ? null : cause.toString())
,
which typically contains the class and detail message of
cause
.cause
- the cause, saved for later retrieval with
Throwable.getCause()
. A null
value
indicates that the cause is nonexistent or unknown.public boolean isOriginatedInThisProcess()
com.veeva.vault.sdk.infrastructure.core.Origination
If false, the implication is that the object originated in a remote process and was sent to this process.
isOriginatedInThisProcess
in interface com.veeva.vault.sdk.infrastructure.core.Origination
Copyright © Veeva Systems 2017–2019. All rights reserved.