Serializable
public class ClassInstantiationException extends RuntimeException
Modifier and Type | Method | Description |
---|---|---|
Class<?> |
getKlass() |
Class that cannot be instantiated.
|
static ClassInstantiationException |
instantiationException(Class<?> klass,
Exception cause) |
Create exception with given original cause.
|
static ClassInstantiationException |
missingDefaultConstructor(Class<?> klass) |
Create exception with a message saying that the empty public constructor is missing on given class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Class<?> getKlass()
public static ClassInstantiationException missingDefaultConstructor(Class<?> klass)
klass
- The class.public static ClassInstantiationException instantiationException(Class<?> klass, Exception cause)
klass
- The class.cause
- The original exception.Copyright © 2017. All rights reserved.