1 16 package org.apache.cocoon.components.notification; 17 18 import org.apache.avalon.framework.CascadingRuntimeException; 19 20 import java.util.Map ; 21 22 28 public class NotifyingCascadingRuntimeException 29 extends CascadingRuntimeException 30 implements Notifying{ 31 32 35 Notifying n; 36 37 40 public NotifyingCascadingRuntimeException(String message) { 41 super(message, null); 42 n = new DefaultNotifyingBuilder().build(this, message); 43 } 44 45 50 public NotifyingCascadingRuntimeException(Exception ex) { 51 super(ex.getMessage(), ex); 52 n = new DefaultNotifyingBuilder().build(this, ex); 53 } 54 55 59 public NotifyingCascadingRuntimeException(String message, Throwable t) { 60 super(message, t); 61 n = new DefaultNotifyingBuilder().build(this, t); 62 } 63 64 67 public String getType() { 68 return n.getType(); 69 } 70 71 74 public String getTitle() { 75 return n.getTitle(); 76 } 77 78 81 public String getSource() { 82 return n.getSource(); 83 } 84 85 88 public String getSender() { 89 return n.getSender(); 90 } 91 92 95 public String getMessage() { 96 return n.getMessage(); 97 } 98 99 102 public String getDescription() { 103 return n.getDescription(); 104 } 105 106 109 public Map getExtraDescriptions() { 110 return n.getExtraDescriptions(); 111 } 112 113 } 114 115 | Popular Tags |