Skip to content

Commit

Permalink
Fix issue #45.
Browse files Browse the repository at this point in the history
This updates the docstrings for graphene.errors.query_errors to make them more
useful and actually meaningful.
  • Loading branch information
Eugene Bulkin committed Nov 15, 2015
1 parent 53c9115 commit db16079
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 8 additions & 3 deletions graphene/errors/query_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@


class NonexistentPropertyException(Exception):
"""Error for creating a type that already exists."""
"""Error for accessing or attempting to modify a property that does not
exist."""
pass

class TooManyClausesException(Exception):
"""Error for too many ORDER BY, RETURN or LIMIT clauses."""
pass

class DuplicatePropertyException(Exception):
"""Error for attempting to get type data for a non-existent type."""
"""Error for attempting to query with a schema containing duplicate property
names.."""
pass

class AmbiguousPropertyException(Exception):
"""Error for attempting to store the incorrect data type for a property."""
"""Error for attempting to query with a schema containing ambiguous property
names. That is, a query is created where a property name could refer to more
than one type in the matching portion of the query, but no specific node
was designated for that property to refer to."""
pass

class BadPropertyException(Exception):
Expand Down
1 change: 0 additions & 1 deletion graphene/errors/storage_manager_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class TypeAlreadyExistsException(Exception):
"""Error for creating a type that already exists."""
pass


class TypeDoesNotExistException(Exception):
"""Error for attempting to get type data for a non-existent type."""
pass
Expand Down

0 comments on commit db16079

Please sign in to comment.