1 18 19 20 package org.apache.struts.tiles; 21 22 23 26 public class TilesException extends Exception 27 { 28 29 30 34 private Exception exception; 35 38 public TilesException() 39 { 40 super(); 41 this.exception = null; 42 } 43 44 48 public TilesException(String message) 49 { 50 super(message); 51 this.exception = null; 52 } 53 54 55 64 public TilesException(Exception e) 65 { 66 super(); 67 this.exception = e; 68 } 69 70 71 80 public TilesException(String message, Exception e) 81 { 82 super(message); 83 this.exception = e; 84 } 85 86 87 96 public String getMessage () 97 { 98 String message = super.getMessage (); 99 100 if (message == null && exception != null) { 101 return exception.getMessage(); 102 } else { 103 return message; 104 } 105 } 106 107 108 113 public Exception getException () 114 { 115 return exception; 116 } 117 118 } 119 | Popular Tags |