IllegalFormatPrecisionException — 불법 정밀도 예외
IllegalFormatPrecisionException — 불법 정밀도 예외
IllegalFormatPrecisionException은 정밀도가 -1 이외의 음수 값이거나, 변환이 정밀도를 지원하지 않거나, 값이 지원되지 않을 때 던져지는 unchecked 예외예요. 정밀도가 int 타입으로 표현할 수 없으면 예외에서 Integer.MIN_VALUE를 사용해요.
본문
public non-sealed class IllegalFormatPrecisionException extends IllegalFormatException
IllegalFormatPrecisionException(int p)
public IllegalFormatPrecisionException(int p)
지정된 정밀도로 인스턴스를 만들어요.
getPrecision
public int getPrecision()
정밀도를 반환해요. 정밀도가 int로 표현할 수 없으면 Integer.MIN_VALUE를 반환해요.