Uses of Class
com.github.phantomthief.scope.Scope
-
Uses of Scope in com.github.phantomthief.scope
Methods in com.github.phantomthief.scope that return ScopeModifier and TypeMethodDescriptionstatic ScopeScope.beginScope()正常应该优先使用supplyWithNewScope(com.github.phantomthief.util.ThrowableSupplier<T, X>)或者runWithNewScope(com.github.phantomthief.util.ThrowableRunnable<X>)手工使用beginScope和endScope的场景只有在: 上面两个方法当需要抛出多个正交异常时会造成不必要的try/catch代码 开始scope和结束scope不在一个代码块中static ScopeScope.getCurrentScope()Methods in com.github.phantomthief.scope with parameters of type ScopeModifier and TypeMethodDescriptionstatic <X extends Throwable>
voidScope.runWithExistScope(Scope scope, com.github.phantomthief.util.ThrowableRunnable<X> runnable) static <T,X extends Throwable>
TScope.supplyWithExistScope(Scope scope, com.github.phantomthief.util.ThrowableSupplier<T, X> supplier)