-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Further exceptions tweaks #7210
Conversation
/** | ||
* @return PessimisticLockFailed | ||
*/ | ||
public static function lockFailed() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return type maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not in this PR, not directly related. :)
97477bd
to
d7b4d39
Compare
d7b4d39
to
bb286d4
Compare
namespace Doctrine\ORM\Exception; | ||
|
||
/** | ||
* Exception for a unexpected query result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a => an
@@ -14,8 +14,10 @@ | |||
|
|||
/** | |||
* A MappingException indicates that something is wrong with the mapping setup. | |||
* | |||
* @todo Split into specific exceptions and change to interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! ✨
@@ -8,6 +8,8 @@ | |||
|
|||
/** | |||
* Exception for a unexpected query result. | |||
* | |||
* @final |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for having this as an annotation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind 😛
result contains more than one object, an ``NonUniqueResultException`` | ||
is thrown. If the result contains no objects, an ``NoResultException`` | ||
is thrown. The pure/mixed distinction does not apply. | ||
result contains more than one object, an ``NonUniqueResult`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an => a
is thrown. If the result contains no objects, an ``NoResultException`` | ||
is thrown. The pure/mixed distinction does not apply. | ||
result contains more than one object, an ``NonUniqueResult`` | ||
is thrown. If the result contains no objects, an ``NoResult`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an => a
Expands and refines #6743.
new()
.To be documented after first round of review.
cc @greg0ire
TODO: