1 18 19 20 package org.apache.struts.tiles; 21 22 26 public class DefinitionsFactoryException extends TilesException 27 { 28 31 public DefinitionsFactoryException() 32 { 33 super(); 34 this.exception = null; 35 } 36 37 41 public DefinitionsFactoryException(String message) 42 { 43 super(message); 44 this.exception = null; 45 } 46 47 48 57 public DefinitionsFactoryException(Exception e) 58 { 59 super(); 60 this.exception = e; 61 } 62 63 64 73 public DefinitionsFactoryException(String message, Exception e) 74 { 75 super(message); 76 this.exception = e; 77 } 78 79 80 89 public String getMessage () 90 { 91 String message = super.getMessage (); 92 93 if (message == null && exception != null) { 94 return exception.getMessage(); 95 } else { 96 return message; 97 } 98 } 99 100 101 105 public Exception getException () 106 { 107 return exception; 108 } 109 110 114 115 119 private Exception exception; 120 } 121 | Popular Tags |