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.ObjectA 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.Throwablecauseprotected ErrorClassificationerrorClassificationprotected java.util.Map<java.lang.String,java.lang.Object>extensionsprotected java.lang.Stringmessageprotected java.util.List<java.lang.Object>pathprotected java.util.List<SourceLocation>sourceLocations
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Bbuild()Tcause(java.lang.Throwable cause)TerrorClassification(ErrorClassification errorClassification)Textensions(java.util.Map<java.lang.String,java.lang.Object> extensions)Tmessage(java.lang.String message)Tpath(java.util.List<java.lang.Object> path)TsourceLocation(SourceLocation sourceLocation)TsourceLocations(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()
-
-