Package graphql
Class GraphqlErrorException.BuilderBase<T extends GraphqlErrorException.BuilderBase<T,B>,B extends GraphqlErrorException>
- java.lang.Object
-
- graphql.GraphqlErrorException.BuilderBase<T,B>
-
- Type Parameters:
T
- the derived classB
- the class to be built
- Direct Known Subclasses:
CoercingParseLiteralException.Builder
,CoercingParseValueException.Builder
,CoercingSerializeException.Builder
,GraphqlErrorException.Builder
- Enclosing class:
- GraphqlErrorException
protected abstract static class GraphqlErrorException.BuilderBase<T extends GraphqlErrorException.BuilderBase<T,B>,B extends GraphqlErrorException> extends java.lang.Object
A trait like base class that contains the properties that GraphqlErrorException handles and can be used by other classes to derive their own builders.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuilderBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
message
protected java.lang.String message
-
cause
protected java.lang.Throwable cause
-
errorClassification
protected ErrorClassification errorClassification
-
sourceLocations
protected java.util.List<SourceLocation> sourceLocations
-
extensions
protected java.util.Map<java.lang.String,java.lang.Object> extensions
-
path
protected java.util.List<java.lang.Object> path
-
-
Method Detail
-
message
public T message(java.lang.String message)
-
cause
public T cause(java.lang.Throwable cause)
-
sourceLocation
public T sourceLocation(SourceLocation sourceLocation)
-
sourceLocations
public T sourceLocations(java.util.List<SourceLocation> sourceLocations)
-
errorClassification
public T errorClassification(ErrorClassification errorClassification)
-
path
public T path(java.util.List<java.lang.Object> path)
-
extensions
public T extensions(java.util.Map<java.lang.String,java.lang.Object> extensions)
-
build
public abstract B build()
-
-