|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.xml.bind.JAXBException
public class JAXBException
이것은, 모든 JAXB 예외의 루트 예외 클래스입니다.
JAXBContext
,
Marshaller
,
Unmarshaller
,
직렬화 된 형식 생성자 의 개요 | |
---|---|
JAXBException (String message)
지정된 상세 메세지를 가지는 JAXBException 를 구축합니다. |
|
JAXBException (String message,
String errorCode)
지정된 상세 메세지와 벤더 고유의 errorCode 를 가지는 JAXBException 를 구축합니다. |
|
JAXBException (String message,
String errorCode,
Throwable exception)
지정된 상세 메세지, 벤더 고유의 errorCode, linkedException 를 가지는 JAXBException 를 구축합니다. |
|
JAXBException (String message,
Throwable exception)
지정된 상세 메세지와 linkedException 를 가지는 JAXBException 를 구축합니다. |
|
JAXBException (Throwable exception)
linkedException 를 가지는 JAXBException 를 구축합니다. |
메소드의 개요 | |
---|---|
Throwable |
getCause ()
원인이 존재하지 않는가 불명한 경우에, 이 Throwable 또는 null 의 원인을 돌려줍니다. |
String |
getErrorCode ()
벤더 고유의 에러 코드를 가져옵니다. |
Throwable |
getLinkedException ()
링크된 예외를 가져옵니다. |
void |
printStackTrace ()
이 JAXBException 와 그 스택 트레이스 (linkedException 가 null 이외의 경우, 그 스택 트레이스를 포함한다)를 System.err 에 출력합니다. |
void |
printStackTrace (PrintStream s)
이 JAXBException 와 그 스택 트레이스 (linkedException 가 null 이외의 경우, 그 스택 트레이스를 포함한다)를 PrintStream 에 출력합니다. |
void |
printStackTrace (PrintWriter s)
이 JAXBException 와 그 스택 트레이스 (linkedException 가 null 이외의 경우, 그 스택 트레이스를 포함한다)를 PrintWriter 에 출력합니다. |
void |
setLinkedException (Throwable exception)
링크된 예외를 추가합니다. |
String |
toString ()
이 JAXBException 의 짧은 설명을 돌려줍니다. |
클래스 java.lang. Throwable 로부터 상속된 메소드 |
---|
fillInStackTrace , getLocalizedMessage , getMessage , getStackTrace , initCause , setStackTrace |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public JAXBException(String message)
message
- 예외의 설명public JAXBException(String message, String errorCode)
message
- 예외의 설명errorCode
- 벤더 고유의 에러 코드를 지정하는 캐릭터 라인public JAXBException(Throwable exception)
exception
- 링크된 예외public JAXBException(String message, Throwable exception)
message
- 예외의 설명exception
- 링크된 예외public JAXBException(String message, String errorCode, Throwable exception)
message
- 예외의 설명errorCode
- 벤더 고유의 에러 코드를 지정하는 캐릭터 라인exception
- 링크된 예외메소드의 상세 |
---|
public String getErrorCode()
public Throwable getLinkedException()
public void setLinkedException(Throwable exception)
exception
- 링크된 예외 (null 치는 허가되고 있어 링크된 예외가
존재하지 않는가 불명한 일을 나타낸다)public String toString()
Throwable
내의 toString
public void printStackTrace(PrintStream s)
Throwable
내의 printStackTrace
s
- 출력에 사용하는 PrintStreampublic void printStackTrace()
Throwable
내의 printStackTrace
public void printStackTrace(PrintWriter s)
Throwable
내의 printStackTrace
s
- 출력에 사용하는 PrintWriterpublic Throwable getCause()
Throwable
의 기술:null
의 원인을 돌려줍니다. 원인은 이 Throwable 를 throw 시킨 Throwable 입니다.
이 구현은,Throwable 를 요구하는 몇개의 생성자 경유로 제공된 원인, 또는 Throwable.initCause(Throwable)
메소드를 사용해 작성 후로 설정된 원인을 돌려줍니다. 일반적으로, 이 메소드를 오버라이드(override) 할 필요는 없습니다만, 서브 클래스는 이 메소드를 오버라이드(override) 해, 다른 어떠한 방법으로 설정된 원인을 돌려줄 수가 있습니다. 이것은, 체인 된 예외의 Throwable 에의 추가전에 실행되는 「유산 연쇄 throw 가능 객체」의 경우에 적절한 동작입니다. PrintStackTrace 메소드의 어느쪽이든을 오버라이드(override) 할 필요는 없습니다. 이러한 메소드는 모두 getCause 메소드를 호출해, throw 가능 객체의 원인을 판별합니다.
Throwable
내의 getCause
null
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.