Systems | Development | Analytics | API | Testing

Rollbar

How to Catch Multiple Exceptions in Python?

When a program encounters an exception during execution, it is terminated if the exception is not handled. By handling multiple exceptions, a program can respond to different exceptions without terminating it. In Python, try-except blocks can be used to catch and respond to one or multiple exceptions. In cases where a process raises more than one possible exception, they can all be handled using a single except clause.

Resolving TypeError: "X" is Not a Constructor in JavaScript

A constructor is a special function that creates and initializes an object instance of a class. In JavaScript, a constructor gets called when an object is created using the new keyword. The purpose of a constructor is to create a new object and set values for any existing object properties.

How to Handle the <Identifier> Expected Error in Java

By definition, an identifier in Java is a sequence of one or more characters, where the first character must be a valid first character (letter, $, _) and each subsequent character in the sequence must be a valid non-first character (letter, digit, $, _). An identifier can be used to name a package, a class, an interface, a method, a variable, etc.

Spring vs. Spring Boot, Whats the Difference?

Spring is the most popular application development framework in Java. However, over the past few years, Spring has become increasingly complex because of added functionalities. Starting a new project usually requires going through a lengthy process and takes a lot of time. To avoid starting from scratch and to save time, Spring Boot was introduced. Spring Boot uses Spring as its foundation layer and allows developers to build a standalone application with none or minimal configuration.

How to Fix Unreachable Statement Errors in Java

Statements are foundational language constructs that have an effect on the execution of a program. Statements are similar to sentences in natural languages. In Java, there are three main types of statements, namely expression statements, declaration statements, and control-flow statements 1. As a compiled programming language, Java has an inbuilt mechanism for preventing many source code errors from winding up in executable programs and surfacing in production environments 2.

Coding Java Applications the Serverless Way

Serverless Java applications use modern cloud computing to let developers focus on business logic rather than infrastructure. In a serverless environment, the infrastructure provider takes care of scaling, runtimes, resource management, security and other specifics. Concerns such as number of instances to run and which OS to use are managed by Function as a Service (FaaS) platforms, allowing developers to focus on application code.