JavaTM Platform
Standard Ed. 6

javax.naming
클래스 NotContextException

java.lang.Object 
  상위를 확장 java.lang.Throwable 
      상위를 확장 java.lang.Exception 
          상위를 확장 javax.naming.NamingException 
              상위를 확장 javax.naming.NotContextException
모든 구현된 인터페이스:
Serializable


public class NotContextException
extends NamingException

네이밍 조작을 계속하기 위해서 문맥이 필요한 지점에서, 해결된 객체가 문맥이 아닌 경우에, 이 예외는 throw 됩니다. 예를 들어, Context.destroy()에서는, 지정한 객체가 문맥일 필요가 있습니다. 문맥이 아닌 경우, NotContextException 가 throw 됩니다. 다른 예로서 Context 메소드의 해결중에 발생한 비문맥이 있습니다.

또, 이 예외가 throw 되는 것은 DirContext 등의, 문맥의 특정의 subtype이 필요한 때에, 해결된 객체가 문맥이어도 필요한 subtype이 아닌 경우입니다.

NamingException 에 적용되는 동기 및 직렬화는, 여기서 직접 적용됩니다.

도입된 버젼:
1.3
관련 항목:
Context.destroySubcontext(javax.naming.Name) , 직렬화 된 형식

필드의 개요
 
클래스 javax.naming. NamingException 로부터 상속된 필드
remainingName , resolvedName , resolvedObj , rootException
 
생성자 의 개요
NotContextException ()
          NotContextException 의 새로운 인스턴스를 구축합니다.
NotContextException (String  explanation)
          설명을 사용해, NotContextException 의 새로운 문맥을 구축합니다.
 
메소드의 개요
 
클래스 javax.naming. NamingException 로부터 상속된 메소드
appendRemainingComponent , appendRemainingName , getCause , getExplanation , getRemainingName , getResolvedName , getResolvedObj , getRootCause , initCause , setRemainingName , setResolvedName , setResolvedObj , setRootCause , toString , toString
 
클래스 java.lang. Throwable 로부터 상속된 메소드
fillInStackTrace , getLocalizedMessage , getMessage , getStackTrace , printStackTrace , printStackTrace , printStackTrace , setStackTrace
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

생성자 의 상세

NotContextException

public NotContextException(String  explanation)
설명을 사용해, NotContextException 의 새로운 문맥을 구축합니다. 다른 필드의 디폴트는 모두 null 가 됩니다.

파라미터:
explanation - null 의 가능성이 있는, 이 예외에 관한 추가의 상세 정보
관련 항목:
Throwable.getMessage()

NotContextException

public NotContextException()
NotContextException 의 새로운 인스턴스를 구축합니다. 필드의 디폴트는 모두 null 가 됩니다.


JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.