All Questions
Tagged with error-handling object-oriented
27 questions
0
votes
3
answers
198
views
Java exceptions that show the message when converted to String
I’m working with custom exceptions in Java for stack operations. However, I’m unsure if the exception handling is being handled properly, especially in terms of how exceptions are thrown and caught. ...
2
votes
3
answers
2k
views
Math calculation JavaScript. Am I using Objects correctly? Can I use methods / functions to shorten my code further? Also error logging?
Context- CRM system, front-end form.
Requirement- Within a form users have to give a rating to a section based on user inputs, each rating has different weighting. The rating is stored in an option ...
1
vote
1
answer
67
views
Android APP user registration page implementation
This is a follow-up question for Android APP User class implementation. I am attempting to build a user registering system and this post shows the user registration page implementation.
The ...
1
vote
1
answer
82
views
Android APP Password Strength Assessment class implementation
This is a follow-up question for Android APP User class implementation. I am attempting to create a password strength assessment class which is named ...
5
votes
2
answers
9k
views
Should i throw exceptions in the service layer or repository, and catch it on the controller? [closed]
I read some answers here on stack exchange, but none really "hits the nail on the head" about where to throw exceptions, where I shouldn't and where to catch them.
the idea that an exception ...
6
votes
1
answer
1k
views
c# Factory Pattern Generic Exception Handler using dot net core
My task was to create exception handler on some system that has multiple types of database and big business behavior.
At first, I had done a switch/case that handled the exceptions by type using the <...
4
votes
3
answers
232
views
PHP display Error Wanings Yellow @ bottom of Page with PHP_EOL
I initially started searching for a PHP script which would output PHP errors, to the JavaScript console. As the Default behaviour is just to spit them out anywhere and displace everything else.
...
11
votes
4
answers
7k
views
Skipping over failed imports until they are needed (if ever)
We have a program with many dependencies. Because the user may not want to use all of them, the program should skip over failed imports and only raise an error if absolutely necessary. e.g. if the ...
3
votes
1
answer
580
views
PHP Error handler class
I set up an error handler class to handle all server errors, I know there are already quite a few out there, but I like creating my own for better learning and understanding of how things work.
I am ...
0
votes
2
answers
209
views
Custom Error Classes in OOP
I have a class which parses a .csv file and converts it into successful rows and errors. Currently I have 12 different kind of errors (mail is not valid, missing column x, row is duplicate etc.).
...
6
votes
2
answers
2k
views
Simulation of a banking system with an Account class in C++
I have been learning C++ and recently I have started practicing classes. I made this simulation of a banking system with an Account class. I would like to hear feedback on my code, what is good - what ...
2
votes
1
answer
403
views
Implementation of OpenGL context
context.h:
...
1
vote
1
answer
1k
views
Push Entity Framework exceptions to business layer
I am trying to write an exception handler/parser, which I want to return from DAL to the business layer. I am writing below class because I don't want my business layer to know if I am using EF under ...
5
votes
2
answers
761
views
Send records and retry them if acknowledgement is not received
I am working on a project where I need to consume lot of records and then I am sending these records to some other system which uses zeromq.
Here is the flow:
Store all the incoming records in a CHM ...
7
votes
1
answer
252
views
Class: 2D Variant Array
Note: Yes. It's big. I'm not expecting commensurately
long/detailed answers (though if anyone wants to write one, you'll definitely be receiving a substantial bounty). This class is going to be used ...