Package graphql.schema.idl.errors
Class SchemaProblem
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- graphql.GraphQLException
-
- graphql.schema.idl.errors.SchemaProblem
-
- All Implemented Interfaces:
java.io.Serializable
@PublicApi public class SchemaProblem extends GraphQLException
A number of problems can occur when using the schema tools likeSchemaParser
orSchemaGenerator
classes and they are reported via this exception as a list ofGraphQLError
s- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchemaProblem(java.util.List<GraphQLError> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GraphQLError>
getErrors()
java.lang.String
getMessage()
java.lang.String
toString()
-
-
-
Constructor Detail
-
SchemaProblem
public SchemaProblem(java.util.List<GraphQLError> errors)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getErrors
public java.util.List<GraphQLError> getErrors()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-