资 源 简 介
```
public class ExceptionUtilzTest {
@Test
public void testToString() {
try {
throw new Exception("Test Throw Exception");
} catch (Exception e) {
ExceptionUtilz.print(e);
ExceptionUtilz.print("MESSAGE", e);
ExceptionUtilz.print(e, 3);
ExceptionUtilz.print(e, 100);
System.err.println(ExceptionUtilz.toString(e));
System.err.println(ExceptionUtilz.toString("MESSAGE", e));
System.err.println(ExceptionUtilz.toString(e, 3));
System.err.println(ExceptionUtilz.toString(e, 80));
System.err.println(ExceptionUtilz.toString(e, 0));
System.out.println(ExceptionUtilz.toStringHTML(e));
System.out.println(ExceptionUtilz.toStringHTML("MESSAGE", e));
System.out.println(ExceptionUtilz.toStringHTML(e, 5));
}
}
}
```