T
- the derived classB
- the class to be builtprotected abstract static class GraphqlErrorException.BuilderBase<T extends GraphqlErrorException.BuilderBase<T,B>,B extends GraphqlErrorException>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Throwable |
cause |
protected ErrorClassification |
errorClassification |
protected java.util.Map<java.lang.String,java.lang.Object> |
extensions |
protected java.lang.String |
message |
protected java.util.List<java.lang.Object> |
path |
protected java.util.List<SourceLocation> |
sourceLocations |
Modifier | Constructor and Description |
---|---|
protected |
BuilderBase() |
Modifier and Type | Method and Description |
---|---|
abstract B |
build() |
T |
cause(java.lang.Throwable cause) |
T |
errorClassification(ErrorClassification errorClassification) |
T |
extensions(java.util.Map<java.lang.String,java.lang.Object> extensions) |
T |
message(java.lang.String message) |
T |
path(java.util.List<java.lang.Object> path) |
T |
sourceLocation(SourceLocation sourceLocation) |
T |
sourceLocations(java.util.List<SourceLocation> sourceLocations) |
protected java.lang.String message
protected java.lang.Throwable cause
protected ErrorClassification errorClassification
protected java.util.List<SourceLocation> sourceLocations
protected java.util.Map<java.lang.String,java.lang.Object> extensions
protected java.util.List<java.lang.Object> path
public T message(java.lang.String message)
public T cause(java.lang.Throwable cause)
public T sourceLocation(SourceLocation sourceLocation)
public T sourceLocations(java.util.List<SourceLocation> sourceLocations)
public T errorClassification(ErrorClassification errorClassification)
public T path(java.util.List<java.lang.Object> path)
public T extensions(java.util.Map<java.lang.String,java.lang.Object> extensions)
public abstract B build()