MissingFormatWidthException — 누락된 너비 예외

MissingFormatWidthException — 누락된 너비 예외

MissingFormatWidthException형식 너비가 필요할 때 던져지는 unchecked 예외예요. 즉 너비가 필수인 형식 지정자에 너비가 지정되지 않았을 때 발생해요. 별도로 명시되지 않는 한 null 인자를 넘기면 NullPointerException이 던져져요.

출처: Java API Reference

본문

public non-sealed class MissingFormatWidthException extends IllegalFormatException

MissingFormatWidthException(String s)

public MissingFormatWidthException(String s)

지정된 형식 지정자로 인스턴스를 만들어요.

getFormatSpecifier

public String getFormatSpecifier()

너비가 없는 형식 지정자를 반환해요.

더 알아보기 (Learn more)