public static class Lang.Break extends FastRuntimeException
A Break is used to shortcut a sequence of function executions
| Constructor and Description |
|---|
Break()
construct a Break without payload
|
Break(Object payload)
Construct a Break with payload specified.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get()
Return the payload
|
doFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Break()
construct a Break without payload
public Break(Object payload)
Construct a Break with payload specified. Note here we can’t use generic type for the payload as java does not support generic typed throwable
payload - the payload objectCopyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.