|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.linkedin.util.lang.LangUtils
org.linkedin.groovy.util.lang.GroovyLangUtils
class GroovyLangUtils extends LangUtils
Field Summary | |
---|---|
static java.lang.String |
MODULE
|
static java.lang.Object |
log
|
Property Summary | |
---|---|
static java.lang.Object |
NOEXCEPTION_ERROR
Returned by noException(Closure) when an exception happens |
Method Summary | |
---|---|
static java.lang.Object
|
noException(groovy.lang.Closure closure)
The closure will be executed and no exception will ever be thrown. |
static java.lang.Object
|
noException(java.lang.Object msg, java.lang.Object valueOnException, groovy.lang.Closure closure)
The closure will be executed and no exception will ever be thrown. |
static java.lang.Object
|
noExceptionWithMessage(java.lang.Object msg, groovy.lang.Closure closure)
The closure will be executed and no exception will ever be thrown. |
static java.lang.Object
|
noExceptionWithValueOnException(java.lang.Object valueOnException, groovy.lang.Closure closure)
The closure will be executed and no exception will ever be thrown. |
Field Detail |
---|
public static final java.lang.String MODULE
public static java.lang.Object log
Property Detail |
---|
static final java.lang.Object NOEXCEPTION_ERROR
Method Detail |
---|
static java.lang.Object noException(groovy.lang.Closure closure)
System.err
, and if this fails as well then there won't be
any message logged.
static java.lang.Object noException(java.lang.Object msg, java.lang.Object valueOnException, groovy.lang.Closure closure)
System.err
, and if this fails as well then there won't be
any message logged.
msg
- to display in the warning (java.lang.Object#toString() will be used for rendering)valueOnException
- return value when exceptionvalueOnException
if exception
static java.lang.Object noExceptionWithMessage(java.lang.Object msg, groovy.lang.Closure closure)
System.err
, and if this fails as well then there won't be
any message logged.
msg
- to display in the warning (java.lang.Object#toString() will be used for rendering)
static java.lang.Object noExceptionWithValueOnException(java.lang.Object valueOnException, groovy.lang.Closure closure)
System.err
, and if this fails as well then there won't be
any message logged.
valueOnException
- return value when exceptionvalueOnException
if exception
Groovy Documentation