Class ExceptionThrowerParams
- java.lang.Object
-
- org.nameapi.client.services.development.exceptionthrower.ExceptionThrowerParams
-
public class ExceptionThrowerParams extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExceptionThrowerParams.Builder
-
Constructor Summary
Constructors Constructor Description ExceptionThrowerParams(ExceptionType exceptionType, int exceptionChance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExceptionChance()ExceptionTypegetExceptionType()
-
-
-
Constructor Detail
-
ExceptionThrowerParams
public ExceptionThrowerParams(ExceptionType exceptionType, int exceptionChance)
- Parameters:
exceptionChance- 0-100, default is 100 and means always throw.
-
-
Method Detail
-
getExceptionType
public ExceptionType getExceptionType()
-
getExceptionChance
public int getExceptionChance()
-
-