Class InvocationResult.Builder
java.lang.Object
com.github.thought2code.mcp.annotated.reflect.InvocationResult.Builder
- Enclosing class:
- InvocationResult
This class implements the builder pattern for creating a new instance of
InvocationResult.- Author:
- codeboyzhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance ofInvocationResultwith the configured values.Sets the exception that occurred during the invocation.Sets the result of the invocation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
result
Sets the result of the invocation.- Parameters:
result- the result of the invocation- Returns:
- the builder instance
-
exception
Sets the exception that occurred during the invocation.- Parameters:
exception- the exception that occurred during the invocation- Returns:
- the builder instance
-
build
Builds a new instance ofInvocationResultwith the configured values.- Returns:
- a new instance of
InvocationResult
-