Class ExceptionThrowerCommand
- java.lang.Object
-
- com.optimaize.command4j.commands.BaseCommand<A,R>
-
- com.optimaize.anythingworks.client.rest.RestBaseCommand<T,A,R>
-
- org.nameapi.client.services.NameApiBaseCommand<org.nameapi.client.services.development.exceptionthrower.RestPort,ExceptionThrowerParams,String>
-
- org.nameapi.client.services.development.exceptionthrower.ExceptionThrowerCommand
-
- All Implemented Interfaces:
com.optimaize.command4j.Command<ExceptionThrowerParams,String>,com.optimaize.command4j.commands.CombinableCommand<ExceptionThrowerParams,String>
public class ExceptionThrowerCommand extends NameApiBaseCommand<org.nameapi.client.services.development.exceptionthrower.RestPort,ExceptionThrowerParams,String>
Tells the server to throw an exception. This is to debug and test on the client how things work.
-
-
Field Summary
-
Fields inherited from class org.nameapi.client.services.NameApiBaseCommand
CLIENT_VERSION
-
-
Constructor Summary
Constructors Constructor Description ExceptionThrowerCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcall(com.google.common.base.Optional<ExceptionThrowerParams> arg, com.optimaize.command4j.ExecutionContext ec)protected Callable<org.nameapi.client.services.development.exceptionthrower.RestPort>createPort(com.optimaize.command4j.ExecutionContext ec)-
Methods inherited from class org.nameapi.client.services.NameApiBaseCommand
getApiKey, getContext, makeClient
-
Methods inherited from class com.optimaize.anythingworks.client.rest.RestBaseCommand
createCacheKey, getHost, getPort, getPortUrlFactory, makeBaseUrl
-
-
-
-
Method Detail
-
call
public String call(@NotNull com.google.common.base.Optional<ExceptionThrowerParams> arg, @NotNull com.optimaize.command4j.ExecutionContext ec) throws Exception
- Throws:
Exception
-
createPort
@NotNull protected Callable<org.nameapi.client.services.development.exceptionthrower.RestPort> createPort(@NotNull com.optimaize.command4j.ExecutionContext ec)
- Specified by:
createPortin classcom.optimaize.anythingworks.client.rest.RestBaseCommand<org.nameapi.client.services.development.exceptionthrower.RestPort,ExceptionThrowerParams,String>
-
-