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 likeSchemaParserorSchemaGeneratorclasses and they are reported via this exception as a list ofGraphQLErrors- 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.StringgetMessage()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SchemaProblem
public SchemaProblem(java.util.List<GraphQLError> errors)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getErrors
public java.util.List<GraphQLError> getErrors()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-