JavaTM Platform
Standard Ed. 6

java.util
클래스 InputMismatchException

java.lang.Object 
  상위를 확장 java.lang.Throwable 
      상위를 확장 java.lang.Exception 
          상위를 확장 java.lang.RuntimeException 
              상위를 확장 java.util.NoSuchElementException 
                  상위를 확장 java.util.InputMismatchException
모든 구현된 인터페이스:
Serializable


public class InputMismatchException
extends NoSuchElementException

취득된 토큰이 예상되는 형태의 패턴과 일치하지 않는지, 예상되는 형태의 범위외인 경우에,Scanner 에 의해 throw 됩니다.

도입된 버젼:
1.5
관련 항목:
Scanner , 직렬화 된 형식

생성자 의 개요
InputMismatchException ()
          에러 메세지 캐릭터 라인에 null 를 사용해 InputMismatchException 를 구축합니다.
InputMismatchException (String  s)
          InputMismatchException 를 구축합니다.
 
메소드의 개요
 
클래스 java.lang. Throwable 로부터 상속된 메소드
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

생성자 의 상세

InputMismatchException

public InputMismatchException()
에러 메세지 캐릭터 라인에 null 를 사용해 InputMismatchException 를 구축합니다.


InputMismatchException

public InputMismatchException(String  s)
InputMismatchException 를 구축합니다. 이 때, 에러 메세지 캐릭터 라인 s 에 참조를 보존하는 것으로써, 나중에 getMessage 메소드로 취득할 수 있도록(듯이) 합니다.

파라미터:
s - 상세 메세지

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 도 참조해 주세요.