Systems | Development | Analytics | API | Testing

Rollbar

How to Implement Custom Exceptions in C++

Under certain conditions, custom exceptions that are not predefined in C++ may be useful to generate. In C++, any type can be caught or thrown that matches some requirements. These are that the type should have a valid copy constructor and destructor. Custom exceptions provide relevant information about an error to the exception handling mechanism.

How to Handle the Clone Not Supported Exception in Java

The CloneNotSupportedException is an exception in Java that is thrown to indicate that the clone() method in class Object was called to clone an object, but that object's class does not implement the Cloneable interface. Applications that override the clone() method can also throw this exception to indicate that an object could not or should not be cloned.

How to Resolve the Instantiation Exception in Java

The InstantiationException is a runtime exception in Java that occurs when an application attempts to create an instance of a class using the Class.newInstance() method, but the specified class object cannot be instantiated. Since the InstantiationException is an unchecked exception, it does not need to be declared in the throws clause of a method or constructor.

Reduce Debugging Time With Rollbar

Development time is precious. Developers are highly-skilled and highly-paid, and so naturally you want to make sure that they are as productive as possible. Many organizations are starting to hire Developer Experience Engineers to make sure that their developers are using the best tools and processes possible. To make developers more productive, the first step is to figure out exactly what developers are actually doing. Then, we need to figure out what we want them to do.

How to Resolve the NoSuchFieldError in Java

The NoSuchFieldError is an error in Java that occurs when a specified field does not exist. It is thrown when an application attempts to access or modify a field of an object or a static field of a class but the object or class no longer contains that field. The NoSuchFieldError only occurs during runtime if the definition of a class has changed incompatibly. Since it is thrown at runtime, it does not need to be declared in the throws clause of a method or constructor.