aicas logoJamaica 6.1 release 1

java.lang
Class ClassNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.ClassNotFoundException
All Implemented Interfaces:
Serializable

public class ClassNotFoundException
extends Exception

ClassNotFoundException is thrown by methods such as Class.forName() if an attempt to load a class failed.

See Also:
Serialized Form

Constructor Summary
ClassNotFoundException()
          Constructor for a ClassNotFoundException with no detail message.
ClassNotFoundException(String s)
          Constructor for a ClassNotFoundException with given detail message.
ClassNotFoundException(String s, Throwable ex)
          Constructor for a ClassNotFoundException with given detail message and cause.
 
Method Summary
 Throwable getCause()
          getCause returns the exception that caused this ClassNotFoundException, null if none.
 Throwable getException()
          getException returns the exception that caused this ClassNotFoundException, null if none.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNotFoundException

public ClassNotFoundException()
Constructor for a ClassNotFoundException with no detail message.


ClassNotFoundException

public ClassNotFoundException(String s)
Constructor for a ClassNotFoundException with given detail message.

ensures

    (s != null IMPLIES getMessage().equals(s));
 

Parameters:
s - the detail message.

ClassNotFoundException

public ClassNotFoundException(String s,
                              Throwable ex)
Constructor for a ClassNotFoundException with given detail message and cause.

ensures

    (s  != null IMPLIES getMessage().equals(s),
     ex != null IMPLIES getCause() == ex);
 

Parameters:
s - the detail message.
ex - the cause why this exception was created or null if none.
Since:
1.2
Method Detail

getException

public Throwable getException()
getException returns the exception that caused this ClassNotFoundException, null if none.

Returns:
the cause or null.
Since:
1.2

getCause

public Throwable getCause()
getCause returns the exception that caused this ClassNotFoundException, null if none.

Overrides:
getCause in class Throwable
Returns:
the cause or null.
Since:
1.4

aicas logoJamaica 6.1 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2012 aicas GmbH. All Rights Reserved.