Package net.corda.v5.base.exceptions
Interface CordaThrowable
-
- All Implemented Interfaces:
public interface CordaThrowable
Base interface for exceptions that are serializable in Corda. Do not use directly, use CordaRuntimeException instead.
-
-
Method Summary
Modifier and Type Method Description abstract String
getOriginalExceptionClassName()
abstract void
setOriginalExceptionClassName(@Nullable() String originalExceptionClassName)
abstract String
getOriginalMessage()
abstract void
setMessage(@Nullable() String message)
Allows to set the message after constructing the exception object. abstract void
setCause(@Nullable() Throwable cause)
Allows to set a Throwable as cause after constructing the exception object. abstract void
addSuppressed(@NotNull() Array<Throwable> suppressed)
-
-
Method Detail
-
getOriginalExceptionClassName
@Nullable() abstract String getOriginalExceptionClassName()
-
setOriginalExceptionClassName
abstract void setOriginalExceptionClassName(@Nullable() String originalExceptionClassName)
-
getOriginalMessage
@Nullable() abstract String getOriginalMessage()
-
setMessage
abstract void setMessage(@Nullable() String message)
Allows to set the message after constructing the exception object.
-
setCause
abstract void setCause(@Nullable() Throwable cause)
Allows to set a Throwable as cause after constructing the exception object.
-
addSuppressed
abstract void addSuppressed(@NotNull() Array<Throwable> suppressed)
-
-
-
-