사용하는 함수에서 어떤 Exception이 발생가능한지 확인하기

CODEDRAGON Development/Java

반응형


 

사용하는 함수에서 어떤 Exception 발생가능한지 확인하기

·       InputStream read()호출시 API throws항목 참조

·       URLEncoder encode()호출시 API throws항목 참조

 

 

 

InputStream read()호출시 API throws항목 참조

 

http://java.oracle.com >>

[Essential Links] [Java APIs] 클릭

 

or

http://docs.oracle.com/javase/8/docs/api/

java.io >>

InputStream >>

"read(byte[] b)" 항목 클릭하여 세부내용을 이동 >>

"Throws:" 항목 참조


 

 

http://bit.ly/2Qfs4BM

Throws:

IOException - If the first byte cannot be read for any reason other than the end of the file, if the input stream has been closed, or if some other I/O error occurs.

NullPointerException - if b is null.

 

 

 

 

 

 

 

 

URLEncoder encode()호출시 API throws항목 참조

http://bit.ly/2S7hmu9

 


 

Throws:

UnsupportedEncodingException - If the named encoding is not supported

 

 

 


반응형