Error Handling

black smartphone on table

Spring WebFlux — Error Handling

Reading Time: 3 minutes Introduction In this Blog, we’ll take a look at the Spring WebFlux Error Handling using @ControllerAdvice. While calling the services/micro-services anything could go wrong and result in 500 “Internal Server Errors” as shown below error: Usually, error messages like this will not be handled properly and would be propagated to all the downstream services which might impact the user experience. In some cases, applications might want to use Continue Reading

background

Apache Camel – Error Handling

Reading Time: 4 minutes In the Apache Camel series, we have already reached the halfway mark. But, in this blog, you’ll tackle one of the most difficult aspects of integration: dealing with the unexpected. When it comes to handling unforeseen occurrences, developing applications that integrate different systems is difficult. You can manage these occurrences and recover in a single system that you fully control. In the same way, network-connected Continue Reading

Error Handling in Pentaho Data Integration

Reading Time: 3 minutes Error Handling is a very important step when we are trying to create an application. It makes the life of an engineer easier when there is a proper way to understand mistakes. Pentaho Data Integration (Kettle) provides a very simple step for different handling. The only effort is to define an error handling output and distribute our error data in the output. Transformation steps may Continue Reading

Functional Way of Handling Errors in Scala: Option and Either

Reading Time: 4 minutes In Scala, we all know that throwing an exception is a side effect and there is no such word as “side effect” in functional programming. If exceptions aren’t used in functional code, what is used instead? Now the idea is that in order to implement error handling in a functional style of code we can represent failures and exceptions with ordinary values. And also, we Continue Reading

Error handling in Solidity is very useful

Reading Time: 3 minutes Hello guys, here is another blog on Solidity. Check out my previous blog on Value types in Solidity. In this blog, we will see how to do error handling in Solidity. Solidity uses state-reverting exceptions to handle errors. Such an exception undoes all changes made to the state in the current call and all its sub-calls and reports the error to the caller. When exceptions Continue Reading

Error Handling in Rust – Error are a fact of life in Software.

Reading Time: 4 minutes Hello Readers!! Again I am here with an exciting topic that is Error Handling. As we know errors are things that no one wants in their program. So lets see what are Errors and how we can handle them . An error is basically an unexpected behaviour or event that may lead a program to produce undesired output or terminate abruptly. We can try to find Continue Reading

Error Handling in Scala with Option, Try/Catch and Either

Reading Time: 3 minutes Error handling is the process of handling the possibility of failure. For example, failing to read a file and then continuing to use that bad input would clearly be problematic. Noticing and explicitly managing these errors saves the rest of the program from various pitfalls. Exceptions in Scala work the same way as in C++ or Java. When an exception occurs, say an Arithmetic Exception then the Continue Reading

How to Tackle Error in Rust Programming

Reading Time: 3 minutes An Error is basically an unexpected behaviour that may lead a program to produce undesired output or terminate abruptly. Error handling is the process of handling the possibility of failure. In Rust, errors can be classified into two major categories. Recoverable UnRecoverable Recoverable Error Recoverable errors are those that do not cause the program to terminate abruptly. Such as a file not found error . Continue Reading

struct

Different ways for `Error Propagation` in Rust

Reading Time: 2 minutes Error Propagation means the code, that detects the problem, must propagate error information back to the caller function so that it can handle the problem. In the real world, the practice of Error Propagation is necessary. One of the benefits is that your code will look cleaner by simply propagating error information back to the caller that can handle the error and another benefit is Continue Reading

Combinators- A functional approach of error handling in ‘Rust’

Reading Time: 3 minutes In this world, everyone is interested in the spikes whether it is related to professional thing or personal. In this blog, I am going to give you spikes of the programming practices in Rust. Error Handling – process of handling the possibility of failure Today, every programmer is worried whether he has implemented error handling in right manner or not. There are various ways to Continue Reading

Idiomatic Error Handling in Scala

Reading Time: 3 minutes Error handling in Scala can just be written like Java. Put in a little bit of pattern matching magic and you are done. However, given a little use of Scala built-in terrific beauties it can be made much better. Let us have a look. Let us look at a quick example def sayHello(any: Any) = { any match { case x: String => "Hello" case Continue Reading