#ErrorHandling

17 posts loaded — scroll for more

Text
tuvocservices
tuvocservices

Error Handling in Node.js: Best Practices for Cleaner Code

Learn the best practices for handling errors effectively in Node.js to write cleaner, more reliable code. This guide covers common pitfalls, async error handling, and structured techniques to improve application stability.

Text
forcecrow
forcecrow

𝐀𝐩𝐞𝐱 𝐏𝐥𝐚𝐭𝐟𝐨𝐫𝐦 𝐄𝐱𝐜𝐞𝐩𝐭𝐢𝐨𝐧𝐬 𝐢𝐧 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞!

𝐒𝐭𝐫𝐮𝐠𝐠𝐥𝐢𝐧𝐠 𝐰𝐢𝐭𝐡 𝐀𝐩𝐞𝐱 𝐏𝐥𝐚𝐭𝐟𝐨𝐫𝐦 𝐄𝐱𝐜𝐞𝐩𝐭𝐢𝐨𝐧𝐬 𝐢𝐧 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞?

🚀 These errors often indicate issues with your code or exceeded governor limits. To tackle them, review exception messages, check for limit breaches, and enhance error handling in your Apex classes. Regular debugging and code optimization are key! 🔍✨

𝐋𝐞𝐚𝐫𝐧 𝐦𝐨𝐫𝐞:

https://forcecrow.com/2024/08/30/apex-platform-exceptions-salesforce/

Text
forcecrow
forcecrow

𝐂𝐮𝐬𝐭𝐨𝐦 𝐄𝐱𝐜𝐞𝐩𝐭𝐢𝐨𝐧𝐬 𝐢𝐧 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞!

Elevate your Salesforce app with 𝐂𝐮𝐬𝐭𝐨𝐦 𝐄𝐱𝐜𝐞𝐩𝐭𝐢𝐨𝐧𝐬! By crafting tailored error messages, you can handle issues more precisely and deliver clear, actionable feedback to users.

This enhances error handling and boosts application reliability, making for a smoother, more intuitive user experience. 🚀🔧

𝐋𝐞𝐚𝐫𝐧 𝐦𝐨𝐫𝐞:

https://forcecrow.com/2024/08/29/custom-exceptions-in-salesforce/

Text
forcecrow
forcecrow

𝑻𝐲𝐩𝐞𝐬 𝐨𝐟 𝐞𝐱𝐜𝐞𝐩𝐭𝐢𝐨𝐧𝐬 𝐢𝐧 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞!

🔍 Understanding the 𝐝𝐢𝐟𝐟𝐞𝐫𝐞𝐧𝐭 𝐭𝐲𝐩𝐞𝐬 𝐨𝐟 𝐞𝐱𝐜𝐞𝐩𝐭𝐢𝐨𝐧𝐬 𝐢𝐧 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞 is crucial for troubleshooting! 🚀

Common exceptions include 𝑫𝑴𝑳𝑬𝒙𝒄𝒆𝒑𝒕𝒊𝒐𝒏, 𝑸𝒖𝒆𝒓𝒚𝑬𝒙𝒄𝒆𝒑𝒕𝒊𝒐𝒏, and 𝑵𝒖𝒍𝒍𝑷𝒐𝒊𝒏𝒕𝒆𝒓𝑬𝒙𝒄𝒆𝒑𝒕𝒊𝒐𝒏. Each type requires specific handling techniques to ensure smooth operations. Learn

how to identify and resolve these exceptions for a more efficient Salesforce experience. 💪

𝑹𝒆𝒂𝒅 𝒎𝒐𝒓𝒆:
https://forcecrow.com/2024/08/23/exceptions-in-salesforce/

Text
spindlecrank
spindlecrank

Effective Bash Scripting: Importance of Good Code and Error Handling

Bash (Bourne Again SHell) scripting is a Unix shell and command language used for writing sequences of commands to automate tasks. It is essential for system administration and data processing. Critical aspects include error handling, which prevents data

What is Bash Scripting?
Bash (Bourne Again SHell) is a Unix shell and command language written as a free software replacement for the Bourne shell. It’s widely available on various operating systems and is a default command interpreter on most GNU/Linux systems. Bash scripting allows users to write sequences of commands to automate tasks, perform system administration, and manage data…

Text
simplywebstuff
simplywebstuff

PHP Error Handling. Everything You Need To Know

PHP Error Handling. Everything You Need To Know
Lets learn about Error Handling in PHP, because no developer can avoid errors. So in today’s article you will learn what PHP error handling is and how to use it. #php #phperrorhandling #webdev #errorhandling

Last time we talked about Magic Constants in PHP. Now lets learn about Error Handling in PHP, because no developer can avoid errors. So in today’s article you will learn what PHP error handling is and how to use it.

Handling Errors

When creating website you most definitely will run into errors and your code will not work as you planned. There are a number of reasons why errors appeared, for…


View On WordPress

Link
script-ease
script-ease

java - After Camel split Exception won't be escalated - Stack Overflow

java - After Camel split Exception won't be escalated - Stack Overflow
stackoverflow.com
Link
idonodewhattodo
idonodewhattodo

NodeJS REST API with MySQL and Express

querying mySQL using express

Text
prokopsimek-blog
prokopsimek-blog

A couple of Airbrake tips

No software is complete without bugs and no Rails application is complete without proper exception tracking. In most cases we choose Airbrake to collect those exceptions for us.

Here’s a couple of tips to make Airbrake more useful.

http://railsware.com/blog/2012/06/21/a-couple-of-airbrake-tips/

Text
therealyoshi12
therealyoshi12

w2d2

What we did:

Day 2 of chess. A significantly better day in terms of project progression. Yesterday we had finished the user interface and getting the pieces on an 8x8 grid. 

Today we were able to incorporate a lot of the game mechanics into our program. For example, using a cursor we were able to highlight each piece’s valid move that was specific to that piece. Once a user highlighted that piece, it showed the valid moves of where that piece would be able to go. For example if you highlighted a bishop, it would highlight the valid diagonal directions! Mind blown! Never in a million years would I have thought to been able to process that kind of calculation considering i struggled in calculus in college. 

The next step was mapping out the check and checkmate paths which was confusing to plan out. There are a lot of considerations to count in since placing a “check” on a chess board affects both your play state if you have the king in check as well as the play state of your opponent. I definitely give props to game designers and developers this stuff is complex!

And the 2nd assessment topic was announced… apparently we have to create a semi-working card game in 1 hour time limit… Not looking forward to that… but gives me some excuse to play this card game for a couple hours to figure out game mechanics. 

Topics where I struggled:

Ideally I would like to write more legible algorithms and be able to think through my algorithms in better detail and get the picture faster. 

Felt a lot more improved:

Structuring the code and organizing into downloadable sizes. 

Code that == Mind Blown!

Array.flatten.any? Flattens or if you have an array of arrays takes away all the brackets so you just have the elements with which you could see if any of those elements match what you’re looking for or put a condition.  

How I’m feeling:

It’s been about 10 days since I’ve been enrolled in a/A and I have to say it’s exhausting. Spending 12 hours a day thinking about code while it was expected is unexpectedly exhausting. 

5/10

Code Music

Oldie but a goodie. I consider them the first house DJ group I started listening to back in 2009! If you need some strong pump up music to get your blood going:

https://soundcloud.com/katskratch/the-twelves-essential-mix?in=the_real_yoshi/sets/house

Interesting Sidenote

I’m taking care of 3 cats right now as I house sit for my friend… And I must say it’s been quite the interesting experience.

Checkout my projects!

https://github.com/theRealYoshi

I’m taking suggestions!

https://yoshihiroluk.typeform.com/to/ilJBBy

Text
gamesover2600
gamesover2600

ColdFusion 10+IIS7 Error Handling Bug... 4 Years Later

I’m posting this blog response here because Adobe’s ColdFusion blog rejected it as “spam”. (Too many links?)
http://blogs.coldfusion.com/post.cfm/onmissingtemplate

I strongly agree with Alexander regarding this issue and have been waiting 2 years for this bug to be fixed.

A related issue was reported on StackOverflow back in 2011, so this could makes this bug about 4 years old.
http://stackoverflow.com/questions/4968018/coldfusion-error-and-iis7-5-error-pages/6618714
http://serverfault.com/questions/277915/disabling-iis-7-5-server-error-response-for-5xx-and-4xx-http-status-codes
http://stackoverflow.com/questions/3936722/iis7-hijacks-my-coldfusion-error-page

.Net already works around this “default behavior” by adding a “TrySkipIisCustomErrors” flag in the response that instructs IIS “Ignore the status code”.  I think it’s insane to worry abour breaking CF10/11 backward compatility when CF 6, 7, 8 & 9 all worked in this fashion. Here’s more info regarding this non-default feature of IIS:
http://weblog.west-wind.com/posts/2009/Apr/29/IIS-7-Error-Pages-taking-over-500-Errors

I recently discovered an inconsistency regarding CF10 error pages. My configuration is as follows:

  • IIS 7.5 Error Pages are set to “Detailed Errors for local requests and custom error pages for remote requests”.
  • My IIS “403.htm” template is an empty 0 byte file.
  • I have “Enable HTTP status codes“ disabled in the CFAdmin.

Using ColdFusion 6, 7, 8 or 9, any file that ends in “.cfm” can return a non-200 status code and the contents are properly displayed (and not the static IIS error page).  However using ColdFusion 10, only the static IIS error page file is returned. (This is the bug.)

Accessed URL: /test.cfm
Actual Script Name: /test.cfm
File Contents: <cfheader statuscode=“403” statustext=“Forbidden”><p>Sorry. Forbidden</p>

ColdFusion 10 appears to function properly “if” the script is a root document and no “.cfm” is exposed in the URI.

Accessed URL: /
Actual Script Name: /index.cfm
File Contents: <cfheader statuscode=“403” statustext=“Forbidden”><p>Sorry. Forbidden</p>

Both of these ColdFusion scripts should return the same response & content irrespective of the URI used.

Link
ayn
ayn

Throw What Don't Throw - Cocoaphony

Throw What Don't Throw - Cocoaphony
robnapier.net
Link
ayn
ayn

Swift 2 error handling in practice | Sunset Lake Software

Swift 2 error handling in practice | Sunset Lake Software
www.sunsetlakesoftware.com
Text
dmitrydwhite
dmitrydwhite

Learn: Splunk.  Possibly has to do with error handling?

Video
laravelnews
laravelnews

In this video Taylor Otwell covers error handling in Laravel 4.

Link
reinier
reinier

From Delicious: Client-Side Error Logging With Google Analytics

Text
eliassen
eliassen

Sending WCF Exception details to Silverlight 4 client

Error messages from WCF web services are required by the Soap standard to have an HTTP status in the 400-500 range. Because of limitations in the browser http stack, Silverlight clients can’t access the body of these error message to get any information about the fault that has occurred.

Microsoft specifies two ways of remedying this situation: http://msdn.microsoft.com/en-us/library/ee844556(VS.95).aspx

In any case, always remember to check for errors when the service request has finished, using the CompletedEventArgs.Error property!