java.lang
Class TypeNotPresentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.TypeNotPresentException
- All Implemented Interfaces:
- Serializable
public class TypeNotPresentException
- extends RuntimeException
TypeNotPresentException is a runtime exception that is thrown when
a type given as a string could not be loaded or created.
- Since:
- 1.5
- See Also:
- Serialized Form
Method Summary |
String |
typeName()
typeName returns the name of the type that is not present. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TypeNotPresentException
public TypeNotPresentException(String name,
Throwable ex)
- Constructor for a TypeNotPresentException with given detail
message and cause.
ensures
(name != null IMPLIES getMessage().equals(name),
ex != null IMPLIES getCause() == ex);
- Parameters:
name
- the name of the type that is not present.ex
- the cause why this exception was created or null if
none.- Since:
- 1.5
typeName
public String typeName()
- typeName returns the name of the type that is not present.
- Returns:
- the name that was given to the constructor of this exception.
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.