1 5 package com.dotmarketing.exception; 6 7 import java.io.PrintStream ; 8 import java.io.PrintWriter ; 9 10 public class DotRuntimeException extends RuntimeException { 11 12 private static final long serialVersionUID = 1L; 13 private String message; 14 15 public DotRuntimeException(String x){ 16 17 this.message = x; 18 19 } 20 21 public DotRuntimeException(String x, Exception e){ 22 23 this.message = x; 24 super.initCause(e); 25 26 } 27 28 31 public synchronized Throwable fillInStackTrace() { 32 33 return super.fillInStackTrace(); 34 } 35 38 public Throwable getCause() { 39 40 return super.getCause(); 41 } 42 45 public String getLocalizedMessage() { 46 47 return super.getLocalizedMessage(); 48 } 49 52 public String getMessage() { 53 54 return message; 55 } 56 59 public StackTraceElement [] getStackTrace() { 60 61 return super.getStackTrace(); 62 } 63 66 public synchronized Throwable initCause(Throwable arg0) { 67 68 return super.initCause(arg0); 69 } 70 73 public void printStackTrace() { 74 75 super.printStackTrace(); 76 } 77 80 public void printStackTrace(PrintStream arg0) { 81 82 super.printStackTrace(arg0); 83 } 84 87 public void printStackTrace(PrintWriter arg0) { 88 89 super.printStackTrace(arg0); 90 } 91 94 public void setStackTrace(StackTraceElement [] arg0) { 95 96 super.setStackTrace(arg0); 97 } 98 101 public String toString() { 102 103 return super.toString(); 104 } 105 } 106 | Popular Tags |