|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.ClassNotFoundException
public class ClassNotFoundException
어플리케이션이, 클래스의 캐릭터 라인명을 사용해 다음의 메소드로 로드하려고 했지만, 지정된 이름의 클래스의 정의가 발견되지 않았던 경우에 throw 됩니다.
Class
클래스의 forName
메소드
ClassLoader
클래스의 findSystemClass
메소드
ClassLoader
클래스의 loadClass
메소드
1.4 릴리스에서는, 이 예외는 범용적인 예외 체인 기구에 적합하도록(듯이) 개량되고 있습니다. 「클래스의 로드시에 발생한 옵션 예외」 (구축시에 throw 되어getException()
메소드를 개입시켜 액세스 가능)는,cause 메소드로 불리게 되어, 전술의 「유산 메소드」에 가세해 Throwable.getCause()
메소드를 개입시켜 액세스 가능합니다.
Class.forName(java.lang.String)
,
ClassLoader.findSystemClass(java.lang.String)
,
ClassLoader.loadClass(java.lang.String, boolean)
,
직렬화 된 형식 생성자 의 개요 | |
---|---|
ClassNotFoundException ()
상세 메세지를 지정하지 않고 ClassNotFoundException 를 구축합니다. |
|
ClassNotFoundException (String s)
지정된 상세 메세지를 가지는 ClassNotFoundException 를 구축합니다. |
|
ClassNotFoundException (String s,
Throwable ex)
지정된 상세 메세지와 클래스의 로드시에 생긴 옵션의 예외를 가지는, ClassNotFoundException 를 생성합니다. |
메소드의 개요 | |
---|---|
Throwable |
getCause ()
이 예외의 원인 (클래스의 로드시에 에러가 발생했을 경우는 throw 된 예외를, 그 이외의 경우는 null)을 돌려줍니다. |
Throwable |
getException ()
클래스의 로드를 시도하고 있을 때 에러가 발생했을 경우에 생긴 예외를 돌려줍니다. |
클래스 java.lang. Throwable 로부터 상속된 메소드 |
---|
fillInStackTrace , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public ClassNotFoundException()
ClassNotFoundException
를 구축합니다.
public ClassNotFoundException(String s)
ClassNotFoundException
를 구축합니다.
s
- 상세 메세지public ClassNotFoundException(String s, Throwable ex)
ClassNotFoundException
를 생성합니다.
s
- 상세 메세지ex
- 클래스의 로드시에 생긴 예외메소드의 상세 |
---|
public Throwable getException()
이 메소드는 범용적인 예외 체인 기능에 선행합니다. 이 정보를 취득하기 위해서,Throwable.getCause()
메소드를 사용하는 것을 추천합니다.
Exception
public Throwable getCause()
Throwable
내의 getCause
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.