Programming/Java
ExceptionUtils - java 에서 exception 관련 처리를 쉽게 도와주는 클래스
starblood
2013. 8. 30. 12:20
Exception 관련 처리를 임의로 가공하여 처리하고 싶을때 편의를 제공해 주는 apache commons-lang package 에 있는 library 이다.
http://commons.apache.org/proper/commons-lang/
사용예:
String message = null; try { String str = null str.toUpperCase(); } catch (Exception e) { message = ExceptionUtils.getFullStackTrace(e); }
System.out.println(message); |
이보다 다양한 기능을 제공하고 있으니 documentation 을 참고하자.
javadoc api: http://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html