The UnknownEntityException exception

The UnknownEntityException class extends RuntimeException and is a superclass of unknown exceptions. The class constructor is as follows:

    protected UnknownEntityException(String message)

The constructor creates a new instance of UnknownEntityException with the message provided as a string argument. The method does not take additional arguments.

This class does not have its own methods, but inherits methods from both java.lang.Throwable and class.java.lang.Object classes as shown here:

The java.lang.Throwable class methods:

  • addSuppressed()
  • fillInStackTrace()
  • getCause()
  • getLocalizedMessage()
  • getMessage()
  • getStackTrace()
  • getSuppressed()
  • initCause()
  • printStackTrace()
  • setStackTrace()
  • toString()

The java.lang.Object ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.