Class ErrorResponse.Debug.Builder
java.lang.Object
com.helixframework.api.contract.error.ErrorResponse.Debug.Builder
- Enclosing class:
- ErrorResponse.Debug
Builds instances of
ErrorResponse.Debug.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance ofErrorResponse.Debug.withAttribute(String key, Object value) Adds the supplied attribute to the debug info.withAttributes(Map<String, Object> attributes) Adds the supplied attributes to the debug info.withStacktrace(String stacktrace) Sets the stacktrace on the debug info.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withStacktrace
Sets the stacktrace on the debug info.- Parameters:
stacktrace- stacktrace- Returns:
- builder
-
withAttribute
Adds the supplied attribute to the debug info.- Parameters:
key- attribute keyvalue- attribute value- Returns:
- builder
-
withAttributes
Adds the supplied attributes to the debug info.- Parameters:
attributes- attributes- Returns:
- builder
-
build
Builds a new instance ofErrorResponse.Debug.- Returns:
- debug
-