Where to catch Error: Please pass a valid aggregate id!
See original GitHub issueHi, I use Promise to handle command:
function handleCommand(cmd) {
return new Promise((resolve, reject) => {
domain.handle(cmd, err => {
if (err) {
reject(err);
}
resolve();
});
});
}
However the problem is when Error: Please pass a valid aggregate id!
occurs then the whole process exits and the callback function is not called.
Is this a bug or I’m doing it wrong way?
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Error handling - Apollo GraphQL Docs
The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run.
Read more >Why are aggregate functions not allowed in where clause
The reason you can't use SUM() in the WHERE clause is the order of evaluation of clauses. FROM tells you where to read...
Read more >7 Handling PL/SQL Errors
With exceptions, you can handle errors conveniently without the need to ... SQL aggregate functions such as AVG and SUM always return a...
Read more >try...catch - JavaScript - MDN Web Docs - Mozilla
The catch -block specifies an identifier ( e in the example above) that holds the value of the exception; this value is only...
Read more >Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages ... Please have available for review the Microsoft SQL Server error...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
good catch
Ok, i saw where the problem is. Will submit a fix!