O'Reilly logo

Minecraft Mods Programming Absolute Beginner’s Guide by Rogers Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15. Handle Errors in a Mod

In This Chapter

Respond to exceptions in your Java programs

Create methods that ignore an exception

Use methods that cause exceptions

Create your own exceptions

Errors—the bugs, blunders, and typos that prevent a program from running correctly—are a natural part of the software development process. “Natural” is probably the kindest word that has ever been used to describe them.

Some errors are flagged by the compiler and prevent you from creating a class. Others are noted by the interpreter in response to a problem that keeps it from running successfully. Java divided errors into two categories:

Exceptions—Events that signal an unusual circumstance has taken place as a program runs

Errors—Events that signal ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required