1 16 17 package org.apache.taglibs.standard.lang.jstl; 18 19 20 28 29 public class ELException 30 extends Exception 31 { 32 36 Throwable mRootCause; 37 38 43 public ELException () 44 { 45 super (); 46 } 47 48 53 public ELException (String pMessage) 54 { 55 super (pMessage); 56 } 57 58 63 public ELException (Throwable pRootCause) 64 { 65 mRootCause = pRootCause; 66 } 67 68 73 public ELException (String pMessage, 74 Throwable pRootCause) 75 { 76 super (pMessage); 77 mRootCause = pRootCause; 78 } 79 80 85 public Throwable getRootCause () 86 { 87 return mRootCause; 88 } 89 90 95 public String toString () 96 { 97 if (getMessage () == null) { 98 return mRootCause.toString (); 99 } 100 else if (mRootCause == null) { 101 return getMessage (); 102 } 103 else { 104 return getMessage () + ": " + mRootCause; 105 } 106 } 107 108 } 110 | Popular Tags |