The error-handling tag has no wiki summary.
0
votes
1answer
100 views
error handling logic in php
I'm wondering if you see anything terribly wrong with this code, or if you see any areas for improvement. My objective is to make sure its simple enough for someone else taking over my job to be able ...
1
vote
2answers
55 views
Setting Variable if it doen't exist in Dictionary
So I was wondering if this was good design from client side calls. In the event that the key doesn't exist, go ahead and add it.
public static void SetVariable(string name, object value)
{
if ...
0
votes
0answers
73 views
Conditional error messages in javascript
I was struggling with a way to create conditional error messages in javascript. I just finished coming up with the solution below and I'd love to get some feedback on the idea. There no actual library ...
1
vote
1answer
82 views
Best way to handle repetitive error code or return value
I have a wrapper which interacts with a third party component. In Each function i am performing the operation if it the component is initialized.
I have other function to check the errorCode and ...
3
votes
2answers
93 views
Storing and iterating over multiple NSError pointers
How would you refactor this kind of code? I've unsuccessfully tried several approaches (NSArray, NSPointerArray, plain C array), but always ran into pointer type checking error.
NSError *error1;
...
4
votes
2answers
181 views
Better way of splitting a random length string
Currently I am using this code but I am pretty sure there must be a better way of doing it,
private string ReturnEmployeeName(string userName)
{
try
{
// Username coming is ...
2
votes
1answer
162 views
Suggestions for improving error handling
I am interested in finding out what is the correct way of implementing error handling for this situation in C#.
The system tries to do an operation. If the operation succeeded (returns a non-error ...
1
vote
2answers
110 views
Add events dispatching for ActionScript framework Robotlegs
I have the following function in a Service class
protected function writeToFile():void{
var destinationFile:File = File.applicationStorageDirectory.resolvePath(_newPath);
var ...
2
votes
2answers
547 views
HttpClient error handling
I would be happy to hear feedback on my implementation of httpclient. I am not so strong with error handling so I want to improve. My thought process behind this was that IOExceptions can be ...
0
votes
1answer
120 views
What is wrong with these PHP arrays, is_array returns false and foreach says invalid [closed]
I have hit a brick wall in my project: PHP doesn't consider the $bon_v1 an array.
What is wrong with all of this/ some of this?
$bon_r1 = array(
"in" => "#pp1",
"ot" => "bon-r1",
"fn" => ...
0
votes
1answer
53 views
uplifitng return value error reporting to Exception based error reporting
In Framework Design guideline book there is a chapter about Exception and they talk about return-value-based error reporting and exception based error reporting and the fact that we in a O.O language ...