java.lang
Class InstantiationError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.LinkageError
java.lang.IncompatibleClassChangeError
java.lang.InstantiationError
- All Implemented Interfaces:
- Serializable
public class InstantiationError
- extends IncompatibleClassChangeError
InstantiationError is an IncompatibleClassChangeError that is
thrown by the VM if an attempt is made to instantiate an object of a
class without having the required access rights (e.g., the
constructor is private).
- Since:
- 1.0
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InstantiationError
public InstantiationError()
- Constructor for an InstantiationError with no detail message.
InstantiationError
public InstantiationError(String s)
- Constructor for an InstantiationError with given detail
message.
ensures
(s != null IMPLIES getMessage().equals(s));
- Parameters:
s
- the detail message.
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.