@@ -0,0 +1,1048 @@
+package kr.projectn.vdl.utils;%0A%0Aimport java.io.*;%0Aimport java.sql.Timestamp;%0Aimport java.util.Arrays;%0A%0Apublic class ExceptionReportUtil %7B%0A    public static void reportExceptionToFile(Exception e) %7B%0A        String logTimestamp = %22error-%22 + new Timestamp(System.currentTimeMillis() / 1000L).getTime() + %22.log%22;%0A        String errorMessage = e.getMessage() + %22%5Cn%5Cn%22 + Arrays.toString(e.getStackTrace());%0A        try %7B%0A            InputStream ret = new ByteArrayInputStream(errorMessage.getBytes());%0A            BufferedInputStream in = new BufferedInputStream(ret);%0A            BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(new File(logTimestamp)));%0A            int inByte;%0A            while ((inByte = in.read()) != -1) out.write(inByte);%0A            in.close();%0A            out.close();%0A        %7D catch (UnsupportedOperationException %7C IOException e1) %7B%0A            // TODO Auto-generated catch block%0A            e1.printStackTrace();%0A        %7D%0A        System.out.println(%22Exception reported to %22 + logTimestamp);%0A    %7D%0A%7D%0A

Add exception report class