Package org.objenesis

Class ObjenesisException

All Implemented Interfaces:
Serializable

public class ObjenesisException extends RuntimeException
Exception thrown by Objenesis. It wraps any instantiation exceptions. Note that this exception is runtime to prevent having to catch it.
See Also:
  • Constructor Details

    • ObjenesisException

      public ObjenesisException(String msg)
      Parameters:
      msg - Error message
    • ObjenesisException

      public ObjenesisException(Throwable cause)
      Parameters:
      cause - Wrapped exception. The message will be the one of the cause.
    • ObjenesisException

      public ObjenesisException(String msg, Throwable cause)
      Parameters:
      msg - Error message
      cause - Wrapped exception