Class ExceptionThrowerParams.Builder
- java.lang.Object
-
- org.nameapi.client.services.development.exceptionthrower.ExceptionThrowerParams.Builder
-
- Enclosing class:
- ExceptionThrowerParams
public static class ExceptionThrowerParams.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionThrowerParamsbuild()ExceptionThrowerParams.BuilderexceptionChance(int exceptionChance)ExceptionThrowerParams.BuilderexceptionType(ExceptionType exceptionType)
-
-
-
Method Detail
-
exceptionType
public ExceptionThrowerParams.Builder exceptionType(ExceptionType exceptionType)
-
exceptionChance
public ExceptionThrowerParams.Builder exceptionChance(int exceptionChance)
- Parameters:
exceptionChance- 0-100, default is 100 and means always throw.
-
build
public ExceptionThrowerParams build()
-
-